Peter Rabbitson wrote:
Hello everyone,
Hello,
Very simple: I need to generate a file and upload it to ftp. Currently I am wrapping the file together, writing it out to a temp file on disk, calling $ftp->put($tmp_file) on it, and unlinking it. Is there a way to skip the write to disk? The put() method seems to expect a path only, rather than
You'd use stor/write/close:
my $stor = $ftp->stor($new_file_on_ftp_server); $stor->write($new_file_guts, length($new_file_guts)); $stor->close();
See `perldoc Net::FTP` for more info
HTH :)
Lee.M - JupiterHost.Net
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>