Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Unicode: Perl5 equivalent to Perl6's @string.graphemes?

by Jim (Curate)
on Nov 12, 2010 at 23:37 UTC ( [id://871169]=note: print w/replies, xml ) Need Help??


in reply to Re: Unicode: Perl5 equivalent to Perl6's @string.graphemes?
in thread Unicode: Perl5 equivalent to Perl6's @string.graphemes?

Can you please explain why you used use open ':std', ':locale' instead of, say, use open qw( :encoding(UTF-8) :std )? What do :std and :locale together do?

(Learning how to process Unicode text using Perl: One step forward, two steps back. Every time I think I've learned something, I haven't.)

Replies are listed 'Best First'.
Re^3: Unicode: Perl5 equivalent to Perl6's @string.graphemes?
by ikegami (Patriarch) on Nov 12, 2010 at 23:51 UTC

    What do :std and :locale together do?

    The same as :std and :encoding together, just without having to specify the encoding.

    Can you please explain why you used use open ':std', ':locale'

    Because I don't know the encoding of the terminals in which your program will run. I don't even know that they all use the same encoding.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found