Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2016-10-25 16:03 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (323 votes). Check out past polls.