Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 avoiding work at the Monastery: (7)
As of 2015-07-05 05:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls