Several times throughout the day, I may be running a test where I need to look through a log file on a remote server. I\'ve gotten used to using my terminal to sftp
sftp
A minor modification like below worked for me when using it from within perl and system() call:
sftp {user}@{host} <<< $'put {local_file_path} {remote_file_path}'