in reply to CGI::Carp outputting error: no error?

Sometimes i like to add this line to the start of my CGI's to help track down weird things:
*STDERR = *STDOUT;
Which redirects STDERR to STDOUT.

But, be careful that no STDERR gets written until you have sent a proper response header, i.e. CGI::header()

Replies are listed 'Best First'.
Re: Re: CGI::Carp outputting error: no error?
by jcpunk (Friar) on Apr 21, 2004 at 22:23 UTC
    THANKS! I was doing something stupid and passing scalars to a function in the wrong order. problem solved!

    jcpunk
    all code is tested, and doesn't work so there :p (varient on common PM sig for my own ammusment)