my $sftp = Net::SFTP::Foreign->new($host, user => $user, password => $passwor +d, autodie => 1); if (lc($function) eq 'get) { $sftp->get($file, $dest); } else { $sftp->put($file, $dest); }
In reply to Re: EXPECT SFTP | Trap Exceptions
by salva
in thread EXPECT SFTP | Trap Exceptions
by bhavanavm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |