Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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

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
Node Status?
node history
Node Type: note [id://121703]
help
Chatterbox?
LanX 1 ..2 ..3 ..4 .. is erix missing ;-)
LanX is Discipulus reciting "Springtime for Hitler" ?
[choroba]: erix could tell you how to do it in Postgres
[LanX]: NOOOOOOOOOOOOOOO not again
[chacham]: wow, mysql really is as bad as i thougt
[choroba]: completion?
[LanX]: That's what he usually does when MySQL is mentioned ;-)
[chacham]: the same thing could be achieved with a trigger
[LanX]: choroba yes
chacham shudders at the thought of using a trigger...so evil

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2017-03-30 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (360 votes). Check out past polls.