in reply to Inconsistancy within Net::FTP?
Basically, I used pipe to create a real pipe between Perl and whatever Net::FTP is doing.my $data="FOOBAR"; pipe PIPEREAD, PIPEWRITE; print PIPEWRITE $data; close PIPEWRITE; my($ftp) = Net::FTP->new($destserv) || die "error connecting\n"; $ftp->login($destuser, $destpass); $ftp->binary(); $ftp->put(*PIPEREAD,"remotelogfile") or die "error uploading\n"; $ftp->quit();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Inconsistancy within Net::FTP?
by merlyn (Sage) on Aug 24, 2000 at 17:39 UTC | |
by rdw (Curate) on Aug 24, 2000 at 19:07 UTC |