in reply to Re: How to convert a shell script to Perl?
in thread How to convert a shell script to Perl?
Instead of the backquote operator it is safer to use system @array to call external programs:
That way special characters are not expanded and/or interpreted by the shell in unexpected ways.system ('wget', "--http-user=$username", "--http-password=$password", "--no-check-certificate", "--output-document=$path", $url);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to convert a shell script to Perl?
by stevieb (Canon) on Jun 30, 2010 at 13:36 UTC |