Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: perl null padding

by m.y (Novice)
on Apr 12, 2008 at 00:32 UTC ( [id://679899]=note: print w/replies, xml ) Need Help??


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

I get the right length also in a non mod_perl environment. For some reason in mod_perl it never goes past the null padding line.

Replies are listed 'Best First'.
Re^3: perl null padding
by nobull (Friar) on Apr 13, 2008 at 09:41 UTC
    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.

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://679899]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-24 05:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found