Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Perl prints junk before file

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

in reply to Perl prints junk before file

The first I thought when I read this, was "BOM marker?".

But the bytes don't seem to fit.

Replies are listed 'Best First'.
Re^2: Perl prints junk before file
by tkly (Initiate) on Feb 04, 2012 at 21:21 UTC
    Oh. i dont know how to check that. or fix it. for now i'm using substr and removing the first 3 characters. :(
      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.

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://951844]
[choroba]: but gurus say they in fact happen left to right, but we understand them wrongly
[marioroy]: bad gurus :)
[choroba]: also, &> redirects both at the same time
[marioroy]: erix are you using csh
Discipulus uh the link was for cmd.exe the bash one
[marioroy]: If yes, for redirection to work, one might do the following
[marioroy]: `bash -c "clang --version 2>/dev/null"`
[choroba]: Sane people don't use csh
[marioroy]: the 1>&2 will work, not shown
[marioroy]: sorry, did not know which if cmd.exe or unix (bash)

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2017-03-23 08:21 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (284 votes). Check out past polls.