Hey thanks for your reply, i was thinking of using curl from the shell actually, but wasn't sure how good that would be. Why do you find that as not being wise? I 'm rather inexpirianced with perl and it would be good to hear opinions :) | [reply] |
It's more efficient and you have much more control using a perl library than you do when you call an external program. For instance, you can keep the FTP/HTTP/etc. connection open from one call to the next if you make multiple requests to the same server.
Moreover, calling an external program is fraught with a lot of coding traps and pitfalls. In general I would prefer using a perl module rather than system() whenever possible.
Btw, why do you need it to be a "single package"? There are ways to bundle CPAN packages together so that you can install all of them with a single command.
| [reply] [d/l] |