Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 pondering the Monastery: (2)
As of 2014-09-21 02:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (166 votes), past polls