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

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

Replies are listed 'Best First'.
Re^5: Perl prints junk before file
by Anonymous Monk on Feb 05, 2012 at 06:13 UTC

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