summaryrefslogtreecommitdiff
path: root/pod/perluniintro.pod
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-03-30 18:44:42 -0600
committerKarl Williamson <public@khwilliamson.com>2011-03-31 11:33:21 -0600
commit00d823b9d3afe42ba72591ca9ddfb74124bd7f49 (patch)
treefa4e1e6e147c06a997c844d6d8388f816da975a4 /pod/perluniintro.pod
parent539689e74a3bcb04d29e4cd9396de91a81045b99 (diff)
downloadperl-00d823b9d3afe42ba72591ca9ddfb74124bd7f49.tar.gz
perluniintro: bytes.pm is not deprecated
Diffstat (limited to 'pod/perluniintro.pod')
-rw-r--r--pod/perluniintro.pod4
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perluniintro.pod b/pod/perluniintro.pod
index 6ca2999736..0fe7bbdaaa 100644
--- a/pod/perluniintro.pod
+++ b/pod/perluniintro.pod
@@ -670,14 +670,14 @@ C<$a> will stay byte-encoded.
Sometimes you might really need to know the byte length of a string
instead of the character length. For that use either the
-C<Encode::encode_utf8()> function or the (deprecated) C<bytes> pragma
+C<Encode::encode_utf8()> function or the C<bytes> pragma
and the C<length()> function:
my $unicode = chr(0x100);
print length($unicode), "\n"; # will print 1
require Encode;
print length(Encode::encode_utf8($unicode)), "\n"; # will print 2
- use bytes; # DEPRECATED!
+ use bytes;
print length($unicode), "\n"; # will also print 2
# (the 0xC4 0x80 of the UTF-8)
no bytes;