http://qs321.pair.com?node_id=904706

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