in reply to Re^2: Why SFTP copy_time doesn't work?
in thread Why SFTP copy_time doesn't work?

As I already told you, status does return a numeric value. Use the numeric operators to handle it:
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.