open(SEASAME,"file_to_send" or die $!; $ftp->put( ,"ftptest"); close SEASAME; #or more simply $ftp->put( "file_to_send", "name_to_put_as");