Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-07-10 17:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (214 votes), past polls