Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

MajingaZ's scratchpad

by MajingaZ (Beadle)
on Jan 15, 2007 at 14:30 UTC ( #594747=scratchpad: print w/ replies, xml ) Need Help??

#perl open(my $INPUT, "<:encoding(UTF-16LE)", 'temp.xsd') or die "Failed to +open the INPUT file as UTF-16LE\n$!\n"; open (my $OUTPUT, ">:crlf:utf8", 'output.dat') or die "Failed to open +the OUTPUT file\n$!\n"; print $OUTPUT $_ while (<$INPUT>);
Perl is printing out the BOM (Byte Order Mark) from the INPUT file, although I have not requested that it do so? How do I get Perl to only print out what I am requesting and skip the BOM?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (16)
As of 2015-07-29 15:10 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 (263 votes), past polls