Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: How can I get a Unicode @ARGV?

by philiprbrenan (Monk)
on Aug 31, 2012 at 11:51 UTC ( #990988=note: print w/ replies, xml ) Need Help??

in reply to How can I get a Unicode @ARGV?

An alternative might be to place the unicode text in a file and then drop that file name on your executable. It would then be staight forward to read the unicode text via:

open(my $F, "<:encoding(UTF-8)", $f) or die "Cannot open $f for unic +ode input";

Comment on Re: How can I get a Unicode @ARGV?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-11-26 13:47 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (701 votes), past polls