open(FH, "<", \$string) or die "Whoops!"; $ftp->put(FH, "remote_file.name");