Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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.

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://131772]
[Discipulus]: so my 'less' usage sounded not so correct? 'fewer' was more appropriate? i take a note too
Discipulus $ENV{PAGER}='fewer '
[Corion]: Discipulus: Hahahaa! ;)
[Corion]: This would be a great April fools joke, since it certainly makes sense to show fewer pages on screen :)
[marioroy]: greetings all
[Corion]: Hi marioroy!
[Corion]: I'm slowly thinking that IP::CloudHoster is a bad name. The module started out as a module to identify whether an IP address comes from a cloud hoster like AWS (or Google GCE, or Linode), but now I also added ...
[Corion]: ... a way to verify that an IP is the GoogleBot crawler. Maybe I should rename it to IP::HostInformatio n or IP::ServiceInforma tion or something like that...
[Corion]: The main idea is to use this module in a web log analyzer to highlight (real) users and flag for example hammering from AWS or GoogleBot (or UAs claiming to be GoogleBot)

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2018-01-23 09:18 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (242 votes). Check out past polls.