in reply to Re: Use of system() considered harmful
in thread Use of system() considered harmful
For instance, this looks like it will invoke cmd with three arguments:
Of course, what really will happen depends on what the strings $one, $two and $three contain.system("/bin/sh", "-c", "cmd $one $two $three");
That's why I like to avoid invoking a shell either explicitly or implicitly when calling external programs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Use of system() considered harmful
by BrowserUk (Patriarch) on Jun 07, 2008 at 20:17 UTC |