Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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?
[talexb]: 2001 sounds about right .. got myself a separate box just to run Linux on. Seriously clueless.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2018-07-17 17:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (374 votes). Check out past polls.

    Notices?