Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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: (14)
As of 2014-12-19 16:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (86 votes), past polls