Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 having an uproarious good time at the Monastery: (4)
As of 2014-09-21 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (167 votes), past polls