Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 scrutinizing the Monastery: (11)
As of 2014-09-17 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (80 votes), past polls