in reply to Re^3: Using Perl FTP to write a string variable as a file
in thread Using Perl FTP to write a string variable as a file
Try using a lexical filehandle
pojopen( my $FH, "<", \$content ) or die "Kann File Handle nicht zum lesen aus content oeffnen"; . . $ftp->put( $FH, $remotefilename ) or die "put failed (Passive=$passive) ", $ftp->message, "; local +filename(FH): [$localfilename], remotefilename: [$remotefilename]"; $ftp->quit; close( $FH );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Using Perl FTP to write a string variable as a file
by toohoo (Beadle) on Dec 22, 2014 at 13:52 UTC |