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

Friendly error trapping

by bradcathey (Prior)
on Sep 13, 2005 at 00:15 UTC ( [id://491423]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ...
    open UPLOADFILE, ">$upload_dir/$filename" or die "$!\n";
    ...
    
  2. or download this
    my $error = uploader($dir, $name);
    print $error if ($error);
    ...
       open UPLOADFILE, ">$upload_dir/$filename" or return("There was a pr
    +oblem uploading your file: $!");
       ...
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-23 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found