Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: using binmode() to override default encoding specified in "use open"

by choroba (Cardinal)
on Jul 22, 2020 at 13:24 UTC ( [id://11119640]=note: print w/replies, xml ) Need Help??


in reply to Re: using binmode() to override default encoding specified in "use open"
in thread using binmode() to override default encoding specified in "use open"

binmode(FILE) if 1; # reset to raw binmode(FILE, ':encoding(UTF-8)') if 1; # add our new encoding
This can be shortened to
binmode(FILE, ':raw:encoding(UTF-8)') if 1;
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-19 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found