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

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 :)
  • Comment on Re^2: package that can handle ftp, sftp, http etc ?

Replies are listed 'Best First'.
Re^3: package that can handle ftp, sftp, http etc ?
by pc88mxer (Vicar) on Jul 18, 2008 at 14:03 UTC
    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.