summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/lib/bytes.pm
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-10-27 22:14:39 +0000
committermillert <millert@openbsd.org>2002-10-27 22:14:39 +0000
commit55745691c11d58794cc2bb4d620ee3985f4381e6 (patch)
treed570f77ae0fda2ab3c9daa80b06a330c16cfe79f /gnu/usr.bin/perl/lib/bytes.pm
parentremove MD bits from test. (diff)
downloadwireguard-openbsd-55745691c11d58794cc2bb4d620ee3985f4381e6.tar.xz
wireguard-openbsd-55745691c11d58794cc2bb4d620ee3985f4381e6.zip
stock perl 5.8.0 from CPAN
Diffstat (limited to 'gnu/usr.bin/perl/lib/bytes.pm')
-rw-r--r--gnu/usr.bin/perl/lib/bytes.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/gnu/usr.bin/perl/lib/bytes.pm b/gnu/usr.bin/perl/lib/bytes.pm
index f2f7e0157cb..cd82abc75b5 100644
--- a/gnu/usr.bin/perl/lib/bytes.pm
+++ b/gnu/usr.bin/perl/lib/bytes.pm
@@ -1,5 +1,7 @@
package bytes;
+our $VERSION = '1.00';
+
$bytes::hint_bits = 0x00000008;
sub import {
@@ -31,9 +33,6 @@ bytes - Perl pragma to force byte semantics rather than character semantics
=head1 DESCRIPTION
-WARNING: The implementation of Unicode support in Perl is incomplete.
-See L<perlunicode> for the exact details.
-
The C<use bytes> pragma disables character semantics for the rest of the
lexical scope in which it appears. C<no bytes> can be used to reverse
the effect of C<use bytes> within the current lexical scope.
@@ -45,7 +44,7 @@ effect, the encoding is temporarily ignored, and each string is treated
as a series of bytes.
As an example, when Perl sees C<$x = chr(400)>, it encodes the character
-in UTF8 and stores it in $x. Then it is marked as character data, so,
+in UTF-8 and stores it in $x. Then it is marked as character data, so,
for instance, C<length $x> returns C<1>. However, in the scope of the
C<bytes> pragma, $x is treated as a series of bytes - the bytes that make
up the UTF8 encoding - and C<length $x> returns C<2>: