http://www.perlmonks.org?node_id=1024826


in reply to Re^2: Perl sftp behavior when there are no files in the share
in thread Perl sftp behavior when there are no files in the share

You should print your confirmation message from within get_LOGS, like this:
if $sftp->get($REM_FILE) print "file '$REM_FILE' downloaded\n" else print "File does not seem to be present on the remote share. Pleas +e re-request..!!!\n" . $sftp->error\n;