[ILUG] Perl Question.
Niall O Broin
niall at linux.ie
Wed Jun 8 12:57:06 IST 2005
On 8 Jun 2005, at 12:40, Kevin O'Riordan wrote:
> As Niall pointed out, you could probably join the arguments together as
> a single string before calling system() with that single argument.
> the shell would get to parse the line, and would probably get it right.
> Personally I'd try to avoid the shell though, unless you specifically
> want it to parse the line.
As the man page you quoted points out, the shell is only involved when
the command line for system contains shell metacharacters. Martin's
didn't so his perl program won't use the shell.
More information about the ILUG