sub backticks { open(my $pipe, '-|', @_) or return; local $/ = wantarray ? $/ : undef; <$pipe> }
Update: LOL! pc88mxer beat me to posting my own code!
In reply to Re: Non-shell-invoking system/exec and qx//
by ikegami
in thread Non-shell-invoking system/exec and qx//
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |