in reply to Re^2: Trash in my prints
in thread Trash in my prints

That's a bug in mod_perl. Even if it's documented, it's still a bug. It's a bug in the design.

It is neither

It is a perl feature, see binmode

Replies are listed 'Best First'.
Re^4: Trash in my prints
by DrHyde (Prior) on Aug 22, 2011 at 12:57 UTC
    Really? *My* perl doesn't go adding nonsense onto the end of my print()s unless I tell it to:
    $ perl -e 'print "foo"'|hexdump -C 00000000 66 6f 6f ... |foo| 00000003
    binmode() makes no difference.

        I was responding to "print() in mod_perl adds a trailing newline. Try using binmode with the filehandle".

        The only revision I'll make is to add "if that's true, then ..." at the beginning.