Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://121703]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 23:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found