Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: length() miscounting UTF8 characters?

by amon (Scribe)
on Apr 27, 2014 at 22:12 UTC ( [id://1084052]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use open IO => ":utf8";
    while (<>) {
        my @layers = PerlIO::get_layers(\*ARGV);
        say "(@layers)";
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
            print length, " ", $_, "\n";
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1084052]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2024-04-23 12:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found