in reply to Re: Executing perl program from another perl program and capturing the output
in thread Executing perl program from another perl program and capturing the output
The list form of system won't help you on windows.
If your paths don't include quotes, system can help you on windows, if you use Capture::Tiny
use Capture::Tiny qw/ capture /; my($stdout, $stderr, $exit) = capture { system { $args[0] } @args; };;
If you have quotes in your paths then Win32::ShellQuote comes to the rescue
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Executing perl program from another perl program and capturing the output
by BrowserUk (Patriarch) on Nov 25, 2014 at 04:03 UTC | |
by Anonymous Monk on Nov 25, 2014 at 04:34 UTC | |
by BrowserUk (Patriarch) on Nov 25, 2014 at 05:00 UTC |