in reply to Re: Using Perl FTP to write a string variable as a file
in thread Using Perl FTP to write a string variable as a file

I think you want \$string there. Opening a reference to a variable reads the string in the variable as if it were a file. If you just have a scalar variable, it will try to open a file by the name of whatever is in the variable.

Caution: Contents may have been coded under pressure.