in reply to package that can handle ftp, sftp, http etc ?

Thats not a wise requirement, but WWW::Curl fits the bill ;)
  • Comment on Re: package that can handle ftp, sftp, http etc ?

Replies are listed 'Best First'.
Re^2: package that can handle ftp, sftp, http etc ?
by bittis (Sexton) on Jul 18, 2008 at 13:38 UTC
    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 :)
      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.