Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Net::SFTP does not catch errors

by mikedshelton (Beadle)
on Sep 30, 2003 at 20:09 UTC ( #295431=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Net::SFTP;
    $sftp->put( $file, $target_file, \&callback )
     or die( "\nDied : Error $!");
    
  2. or download this
    eval {
     $sftp->put( $file, $target_file, \&callback );
    }<br>
    ...
     writelog(...)
     die("Died Here: Error $!");
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2018-11-21 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (239 votes). Check out past polls.

    Notices?