pileofrogs has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Monks!
I didn't find the answer in 0.2 seconds using the super search, so I'm just asking... is this good or bad lazy? Anyway...
What's the best module if I want my perl script to be able to grab a file when given a URL? I'm hoping for something that will handle all the URL complexity and protocol stuff? I'm thinking one of the many curl libs, but I'm not sure which or if there is something other than curl that might be better? In case I'm not making sense (a common problem) here's what I want to be able to handle:frobozinate.pl http://example.com/wharg.txt frobozinate.pl ftp://bob:secret@example.com/wharg.txt frobozinate.pl file:///home/bob/wharg.txt
Thanks!
--Pileofrogs
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Lazy URL question?
by BrowserUk (Patriarch) on May 13, 2011 at 19:19 UTC | |
Re: Lazy URL question?
by Anonymous Monk on May 13, 2011 at 18:18 UTC | |
by pileofrogs (Priest) on May 13, 2011 at 18:47 UTC | |
Re: Lazy URL question?
by JavaFan (Canon) on May 13, 2011 at 18:16 UTC | |
by pileofrogs (Priest) on May 13, 2011 at 18:29 UTC |
Back to
Seekers of Perl Wisdom