Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Who needs files? Net::FTP::Scalar (code)

by gbarr (Monk)
on Dec 14, 2001 at 01:34 UTC ( #131772=note: print w/ replies, xml ) Need Help??


in reply to Who needs files? Net::FTP::Scalar (code)

Are you sick and tired of writing to a file with Net::FTP? Have you thought "gee, it would be nice if graham had made it possible for me to write to a scalar?"

Um, I did. $ftp->retr($filename) will return a tied filehandle. So you can read from that in the same way you would read from a file.


Comment on Re: Who needs files? Net::FTP::Scalar (code)
Download Code
Re: Re: Who needs files? Net::FTP::Scalar (code)
by runrig (Abbot) on Dec 14, 2001 at 01:46 UTC
    In the spirit of TMTOWTDI, though, why can't I pass Net::FTP a tied filehandle (say, an IO::Scalar), and have the data read that way?

    Update: Ok, done :)

      Because nobody has sent a patch :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-09-16 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (156 votes), past polls