in reply to Re: download a file from a web
in thread SOLVED:download a file from a web

You shouldn't run a shell at all to create a directory, Perl has a portable buildin mkdir() function for that, including reliable return values.

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^3: download a file from a web
by apl (Monsignor) on Apr 18, 2009 at 00:09 UTC
    Quite so, but there were several system calls. If one is going to use it, it's a good idea to check its' success or failure. (Though one should take pains to do so correctly,)