my %args = (user=>'x', password=>'y', debug=>'1'); ##The ftp modules my $sftp = new Net::SFTP('x.y.z',%args); my $put_code = $sftp->put($local_file, $remote_file); print "hi"