lib/bigint.pl An arbitrary precision integer arithmetic package
lib/bigrat.pl An arbitrary precision rational arithmetic package
lib/blib.pm For "use blib"
-lib/byte.pm Pragma to enable byte operations
-lib/byte_heavy.pl Support routines for byte pragma
+lib/bytes.pm Pragma to enable byte operations
+lib/bytes_heavy.pl Support routines for byte pragma
lib/cacheout.pl Manages output filehandles when you need too many
lib/charnames.pm Character names
lib/chat2.pl Obsolete ipc library (use Comm.pm etc instead)
die "Unknown charname '$name'" unless @off;
my $ord = hex substr $txt, $off[0] - 4, 4;
- if ($^H & 0x8) { # "use byte" in effect?
- use byte;
+ if ($^H & 0x8) { # "use bytes" in effect?
+ use bytes;
return chr $ord if $ord <= 255;
my $hex = sprintf '%X=0%o', $ord, $ord;
my $fname = substr $txt, $off[0] + 2, $off[1] - $off[0] - 2;
=head1 SEE ALSO
-L<perlunicode>, L<byte>
+L<perlunicode>, L<bytes>
=cut
=head2 Unicode and UTF-8 support
Perl can optionally use UTF-8 as its internal representation for character
-strings. The C<utf8> and C<byte> pragmas are used to control this support
-in the current lexical scope. See L<perlunicode>, L<utf8> and L<byte> for
+strings. The C<utf8> and C<bytes> pragmas are used to control this support
+in the current lexical scope. See L<perlunicode>, L<utf8> and L<bytes> for
more information.
=head2 Interpreter cloning, threads, and concurrency
=back
-=head2 byte - Perl pragma to turn force treating strings as bytes not
+=head2 bytes - Perl pragma to turn force treating strings as bytes not
UNICODE
=over
corresponding wide character APIs. This is currently only implemented
on Windows.
-Regardless of the above, the C<byte> pragma can always be used to force
-byte semantics in a particular lexical scope. See L<byte>.
+Regardless of the above, the C<bytes> pragma can always be used to force
+byte semantics in a particular lexical scope. See L<bytes>.
The C<utf8> pragma is primarily a compatibility device that enables
recognition of UTF-8 in literals encountered by the parser. It is also
character encoding discipline to the filehandle whence it came, or a
literal UTF-8 string constant in the program), character semantics
apply; otherwise, byte semantics are in effect. To force byte semantics
-on Unicode data, the C<byte> pragma should be used.
+on Unicode data, the C<bytes> pragma should be used.
Under character semantics, many operations that formerly operated on
bytes change to operating on characters. For ASCII data this makes
=head1 SEE ALSO
-L<byte>, L<utf8>, L<perlvar/"${^WIDE_SYSTEM_CALLS}">
+L<bytes>, L<utf8>, L<perlvar/"${^WIDE_SYSTEM_CALLS}">
=cut
earlier than 5.6, but may be automatically set to C<1> by Perl if the system
provides a user-settable default (e.g., C<$ENV{LC_CTYPE}>).
-The C<byte> pragma always overrides the effect of this flag in the current
-lexical scope. See L<byte>.
+The C<bytes> pragma always overrides the effect of this flag in the current
+lexical scope. See L<bytes>.
=item $EXECUTABLE_NAME
print "ok 1\n";
{
- use byte; # UTEST can switch utf8 on
+ use bytes; # UTEST can switch utf8 on
print "# \$res=$res \$\@='$@'\nnot "
if $res = eval <<'EOE'
print "ok $test\n"; ++$test;
{
- use byte;
+ use bytes;
print "not " unless
sprintf("%v", v1.22.333.4444) eq '1.22.197.141.225.133.156';
print "ok $test\n"; ++$test;