http://qs1969.pair.com?node_id=680062


in reply to Re^2: perl null padding
in thread perl null padding

For some reason in mod_perl it never goes past the null padding line.

What direct observation are you making that lead you to conclude that?

If you comment out the padding line does it correctly print the length of the unpadded string?

Have you put a die() or similar after the padding to see if execution is really reaching that point?

It seems much more likely that something you are doing later in the script with the null bytes is causing a mode of failure that prevents the data that's been written to response from appearing on the client.

Replies are listed 'Best First'.
Re^4: perl null padding
by m.y (Novice) on Apr 14, 2008 at 18:51 UTC
    Right now its a pretty simple handler which simply prints out the length of the null-padded string. What I noticed from running the code was that the code immediately after the null-padding line is never reached. If I comment out this line then the code after it executes as expected.