Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Use Net::FTP to get a file and parse it without saving the file locally

by runrig (Abbot)
on Oct 27, 2001 at 02:40 UTC ( #121703=note: print w/ replies, xml ) Need Help??


in reply to Use Net::FTP to get a file and parse it without saving the file locally

You can use IO::Scalar and pass Net::FTP the filehandle, or use IO::File's new_tmpfile() to create a file handle and pass it to Net::FTP. Update: I looked at the link in AnonyMonk's reply, then I looked at the code. With a little patching, there doesn't seem to be any real need to use fileno, unless Mr. Barr knows of a good reason not to go this route (I don't have anything to test on at the moment, so it'll have to wait if I try to do it) :-)
Update: I think princepawn has a better idea anyway :)


Comment on Re: Use Net::FTP to get a file and parse it without saving the file locally
Re: Re: Use Net::FTP to get a file and parse it without saving the file locally
by Anonymous Monk on Oct 27, 2001 at 02:54 UTC
    You can use IO::Scalar and pass Net::FTP the filehandle

    Probably not. Net::FTP uses fileno to get the file descriptor for the passed filehandle and an IO::Scalar won't have a file descriptor. More detail here

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2015-07-02 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (27 votes), past polls