unless ($sftp->put(...)) { if ($r == SSX_FX2_...) { # do whatever } }
But most important, checking the status value is useless after calling put or any other high level method!!!, You should be using $sftp->error instead.
In reply to Re^3: Why SFTP copy_time doesn't work?
by salva
in thread Why SFTP copy_time doesn't work?
by sched
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |