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

Re^3: Perl prints junk before file

by bart (Canon)
on Feb 04, 2012 at 21:48 UTC ( #951860=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Perl prints junk before file
in thread Perl prints junk before file

3 characters? Or 3 bytes? That would be weird bytes, judging by the sample output you posted... But maybe they got converted again, after the fact. So it could be a BOM marker after all.

You could try out File::BOM.


Comment on Re^3: Perl prints junk before file
Re^4: Perl prints junk before file
by tkly (Initiate) on Feb 04, 2012 at 21:52 UTC
    Yup this was the problem. It works now. Thank you!!

      Yup this was the problem. It works now. Thank you!!

      So which editor was it that confused you by adding BOM?

      Because it wasn't perl :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://951860]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2014-12-21 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (105 votes), past polls