Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by Jim (Curate)
on Nov 12, 2010 at 23:37 UTC ( #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.)


Comment on Re^2: Unicode: Perl5 equivalent to Perl6's @string.graphemes?
Select or Download Code
Re^3: Unicode: Perl5 equivalent to Perl6's @string.graphemes?
by ikegami (Pope) 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
Node Status?
node history
Node Type: note [id://871169]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-12-20 06:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls