Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 scrutinizing the Monastery: (6)
As of 2014-11-20 23:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (103 votes), past polls