From 00d823b9d3afe42ba72591ca9ddfb74124bd7f49 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 30 Mar 2011 18:44:42 -0600 Subject: [PATCH] perluniintro: bytes.pm is not deprecated --- pod/perluniintro.pod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pod/perluniintro.pod b/pod/perluniintro.pod index 6ca29997..0fe7bbd 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 function or the (deprecated) C pragma +C function or the C pragma and the C 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; -- 2.7.4