if $sftp->get($REM_FILE) print "file '$REM_FILE' downloaded\n" else print "File does not seem to be present on the remote share. Please re-request..!!!\n" . $sftp->error\n;