You may consider this instead of your mysub:
use IPC::Run qw( run ); use feature qw(say); say alien( q(echo), q(fubar) ); sub alien { my ($command, $arg) = @_; run qq($command $arg); }
As also recommended by bliako.
«The Crux of the Biscuit is the Apostrophe»
In reply to Re: Perl threads loss of performance with system call
by karlgoethebier
in thread Perl threads loss of performance with system call
by daniel85
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |