http://qs321.pair.com?node_id=11114001


in reply to Re: Safely capturing the output of an external program
in thread Safely capturing the output of an external program

Not being in the core is fine. And this, from IPC::System::Simple's documentation,

Better still, you can even use capturex() to run the equivalent of backticks, but without the shell:

is exactly what I wanted to read. Thanks!

  • Comment on Re^2: Safely capturing the output of an external program

Replies are listed 'Best First'.
Re^3: Safely capturing the output of an external program
by perlancar (Hermit) on Mar 10, 2020 at 06:14 UTC
    I'd like to offer another alternative, my IPC::System::Options which exports readpipe() and lets you use the standard backtick operator but with the option of not having to use shell.