Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://553375]
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: (4)
As of 2016-08-30 07:24 GMT
Find Nodes?
    Voting Booth?
    The best thing I ever won in a lottery was:

    Results (411 votes). Check out past polls.