Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Strange interaction between command line and encoding

by VSarkiss (Monsignor)
on Jun 02, 2006 at 20:48 UTC ( #553375=note: print w/ replies, xml ) Need Help??


in reply to Re: Strange interaction between command line and encoding
in thread Strange interaction between command line and encoding

Actually, perlrun says the same thing under the handling of the -M parameter. But in fact, it is just the string STDOUT being passed to the pragma, even in the program. To pass the filehandle (in a simple way, without using lexicals or other modules), you would usually pass a reference to the glob, as in:

# WRONG use of encoding pragma, just an example use encoding 'utf16', \*STDOUT, 'utf8';

But anyway, as to the true source of the problem, I gave up trying to figure it out, as noted in the update.


Comment on Re^2: Strange interaction between command line and encoding
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2014-11-27 03:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (178 votes), past polls