in reply to put net::sftp::foreign getting error

I made a noob mistake, instead of downloading and installing the latest net::sftp::foreign ver 1.89, I downloaded the 1.69 version I then added the following argument best_effort => 1 to put and now it put operation is okay

 $Sftp->put( "$sourcedir/$srcfile", "$destdir/$srcfile", best_effort => 1)