Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Die statement with text & formatting of the user

by jonadab (Parson)
on Apr 28, 2007 at 15:08 UTC ( #612555=note: print w/ replies, xml ) Need Help??


in reply to Die statement with text & formatting of the user

I usually do what sgifford says, and write my own mydie function to replace the built-in die (which, among other things, allows calling a function that wraps my error message in a page that includes such things as site headers, footers, stylesheets, sidebars, whatever, provided said routine does not itself call the mydie function), but there's also CGI::Carp qw(fatalsToBrowser); The latter is simpler and useful for development, although I don't know that I would encourage keeping it in production code, since it potentially could expose to the user information you might not want them to have, which might be a security issue.

-- 
We're working on a six-year set of freely redistributable Vacation Bible School materials.


Comment on Re: Die statement with text & formatting of the user

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2015-07-06 03:56 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 (70 votes), past polls