You might want to take a look at Capture::Tiny. It's tee function can be used to run a system command where it's "output is captured as well as passed on to the original STDOUT and STDERR".
In reply to Re: Capturing output of commands to a file
by dasgar
in thread Capturing output of commands to a file
by parthodas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |