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.