Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: CGI Error Handling

by uwevoelker (Pilgrim)
on Dec 11, 2001 at 01:47 UTC ( #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
Node Status?
node history
Node Type: note [id://130786]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2016-06-30 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (403 votes). Check out past polls.