Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm on mod_perl, attempting to write-out a file previously slurped with read_file. File length is, say 1024 bytes, but when I download the file, it turns out to be 1025 bytes long.
I changed print $content; to print '1'; and the output I get is "1\x0A".
I don't know how to get rid of that, it was mangling my uploads too but I worked around that with read_file. For reasons unknown, I can't use write_file on STDOUT.
Any ideas to get rid of that \x0A?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trash in my prints
by blindluke (Hermit) on Aug 18, 2011 at 20:35 UTC | |
by DrHyde (Prior) on Aug 19, 2011 at 11:25 UTC | |
by Anonymous Monk on Aug 19, 2011 at 12:06 UTC | |
by DrHyde (Prior) on Aug 22, 2011 at 12:57 UTC | |
by Anonymous Monk on Aug 22, 2011 at 13:10 UTC | |
| |
|
Re: Trash in my prints
by blue_cowdawg (Monsignor) on Aug 18, 2011 at 19:50 UTC | |
by Anonymous Monk on Aug 18, 2011 at 20:07 UTC | |
by blue_cowdawg (Monsignor) on Aug 18, 2011 at 20:21 UTC | |
by Anonymous Monk on Aug 18, 2011 at 20:30 UTC | |
by blue_cowdawg (Monsignor) on Aug 18, 2011 at 20:33 UTC | |
|
Re: Trash in my prints
by Anonymous Monk on Aug 18, 2011 at 19:59 UTC | |
by jwkrahn (Abbot) on Aug 18, 2011 at 20:31 UTC | |
by Anonymous Monk on Aug 18, 2011 at 22:33 UTC | |
by Anonymous Monk on Aug 20, 2011 at 05:53 UTC |