Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: CGI Error Handling

by uwevoelker (Pilgrim)
on Dec 11, 2001 at 01:47 UTC ( [id://130786]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    eval {
        open(FH, $file)         or die "NO_OPEN";
    ...
        close(FH)               or die "NO_CLOSE";
    }
    if ($@) { ... }
    
  2. or download this
    open(FH, $file)            or &error("NO_OPEN",  $file, $!);
    my $text = join('', <FH>)  or &error("NO_READ",  $file, $!);
    close(FH)                  or &error("NO_CLOSE", $file, $!);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (11)
As of 2024-04-18 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found