in reply to Re: Get your script warnings on the page it generates
in thread Get your script warnings on the page it generates

But warnings aren't fatal...

use CGI::Carp qw(fatalsToBrowser); will send die/croak/confess messages to the browser, but not warn/carp/cluck messages.

Replies are listed 'Best First'.
Re: Re: Re: Get your script warnings on the page it generates
by marius (Hermit) on Jan 18, 2001 at 22:51 UTC
    Good call, chipmunk. I presume you could use carpout() from CGI::Carp to redirect warn/carp/cluck calls to STDOUT.

    Additionally as of CGI::Carp v1.20:
    use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
    With this, you can call
    warningsToBrowser(1)
    to past warnings to the browser after the call.

    Being proven wrong is one of the best reasons to go RTFM, I guess. =]

    -marius