Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: Get your script warnings on the page it generates

by marius (Hermit)
on Jan 18, 2001 at 22:51 UTC ( #52816=note: print w/ replies, xml ) Need Help??


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

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


Comment on Re: Re: Re: Get your script warnings on the page it generates
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2015-07-29 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (267 votes), past polls