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

Oh. i dont know how to check that. or fix it. for now i'm using substr and removing the first 3 characters. :(

Replies are listed 'Best First'.
Re^3: Perl prints junk before file
by bart (Canon) on Feb 04, 2012 at 21:48 UTC
    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!!

        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 :)