in reply to Re: use of Backticks to catch console output
in thread use of Backticks to catch console output
If you want something a little more robust, that avoids the overhead of using the shell, consider capturex() from IPC::System::Simple.
It is indeed much more robust and a good suggestion! Just a small nitpick: on Windows it is almost impossible to avoid the shell*. IPC::System::Simple works around this by using Win32::ShellQuote under the hood.
* Update: See my clarification further down in the thread.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: use of Backticks to catch console output
by kcott (Archbishop) on Dec 11, 2022 at 14:11 UTC | |
by haukex (Archbishop) on Dec 11, 2022 at 14:24 UTC | |
by kcott (Archbishop) on Dec 11, 2022 at 15:40 UTC | |
by haukex (Archbishop) on Dec 11, 2022 at 19:33 UTC |