in reply to capturing output fails under CGI

Can you show code for a test case (as brief as possible) running under CGI that demonstrates the problem?

Replies are listed 'Best First'.
Re^2: capturing output fails under CGI
by Anonymous Monk on Nov 06, 2008 at 19:10 UTC

    I lied. Not on purpose, honest guv.

    The problem was the taint mode, not CGI.

    Also, I am stupid. Kids, your laugh for the day: I thought that local %ENV; localises it for the lexical scope (so it is automatically restored to its original contents after the block ends). But this statement also empties the hash!

    Thanks for the impulse, ig.