Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Exit CGI gracefully

by blaze (Friar)
on Oct 02, 2002 at 15:10 UTC ( [id://202292]=note: print w/replies, xml ) Need Help??


in reply to Exit CGI gracefully

I normally call a sub, and exit from there, for instance if im checking for an empty string, id do something like
if ($val eq ""){ &error; } sub error{ print <<ErrHtml <html> <head> <title>Error</title> </head> <body> An error occurred </body> </html> ErrHtml exit; #exit so the script stops here }

hth,
-Robert

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-16 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found