Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: perl read a file on Windows is very strange

by ikegami (Patriarch)
on Nov 22, 2010 at 22:40 UTC ( [id://873066]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open my $fh, '<:raw:perlio:encoding(UTF-16LE):crlf', $filename
        or die "Couldn't read '$filename': $! / $^E";
    
  2. or download this
    open my $fh, '<:raw:perlio:encoding(UTF-16LE)', $filename
        or die "Couldn't read '$filename': $! / $^E";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-26 03:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found