Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Net::FTP

by Hue-Bond (Priest)
on May 02, 2006 at 04:05 UTC ( #546810=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $pseudo_file = "line1\nline2\n";
    open my $rfd, '<', \$pseudo_file or die "open1: $!";
    open my $wfd, '>', 'foo' or die "open2: $!";
    print $wfd $_ while <$rfd>;      ## or 'print $wfd (<$rfd>);' if file 
    +isn't large
    close $wfd;
    close $rfd;
    
  2. or download this
    open my $fh, '<', \$pseudo_file_already_generated or die "open: $!";
    $ftp->login("perl",'monk') or die "blah";
    $ftp->put($fh, 'fh.txt') or warn "blah";
    $ftp->quit;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://546810]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2021-11-28 09:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?