Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm wondering if anyone knows of an easy way to use the backticks without invoking the shell, as in a multi-argument system command. The arguments I'll be passing in may include spaces as well as both kinds of quotes, so I don't want to go through the effort of sanitizing them before passing to a shell command.
I know I can do it with the pipe-fork-exec-read series of operations, but I'm hoping for a simpler trick.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Backticks without shell
by Zaxo (Archbishop) on Jan 21, 2004 at 03:23 UTC | |
by Anonymous Monk on Jan 21, 2004 at 03:36 UTC | |
by BUU (Prior) on Jan 21, 2004 at 10:22 UTC | |
|
Re: Backticks without shell
by Fletch (Bishop) on Jan 21, 2004 at 03:13 UTC |