Another useful option is the Capture::Tiny module, which allows you to capture the output for (possible) later use:
use Capture::Tiny ':all'; my $command = ...; my @args = ...; my ($stdout, $stderr, $exit) = capture { system($command, @args); };
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: unix commands output
by Athanasius
in thread unix commands output
by carolw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |