in reply to rapidshare fetcher

Why do you rely that much on the shell and external commands? That makes your code more fragile, less portable, and less secure than needed.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: rapidshare fetcher
by netrom (Acolyte) on Feb 18, 2010 at 09:09 UTC
    Hi

    Thanks for all the comments like a perlcritic, I've only use this on linux boxes which are redhat, opensuse and ubuntu, the script was written back in 2006 and rapidshare has changed their authentication scheme several times since then.

    I would say that relaying on using shell makes it more portable, there are very few machines without bash and wget installed out there. while very few have lots of additional perl modules installed. This may not be the case of windows, but it becomes the choice of cygwin vs activestate ppm.

    I usually try to use as few perl modules as possible and rather use the shell for simple scripts. I've cut and pasted lots of scripts around and on many machines I do not have root or internet connection. Just an account.

    I totally agree it is faster and better with the perl modules, but it is not as portable.