Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Mysterious Whitespaces between each character in a file

by ikegami (Patriarch)
on Oct 08, 2009 at 14:07 UTC ( [id://799977]=note: print w/replies, xml ) Need Help??


in reply to Mysterious Whitespaces between each character in a file

The file is encoded using UCS-2le
open(my $fh, '<:encoding(UCS2-le)', $fn)

You'll need 5.8 or higher for the above command. Perl 5.6 didn't support Unicode and encodings well. Keep in mind that 5.6.1 is 8.5 years old, 5.8 is no longer maintained and 5.10.1 is out. Sorry, I can't help you with a 5.6 solution.

Update: Added last paragraph

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://799977]
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