this doesn't call a shell
The code you showed does, but if you give run an arrayref, it does not (at least on *NIX):
$ perl -wMstrict -MIPC::Run=run -e' run "pstree -A $$" ' perl---sh---pstree $ perl -wMstrict -MIPC::Run=run -e' run ["pstree","-A",$$] ' perl---pstree
In reply to Re^4: Reading output of external program without Shell
by haukex
in thread Reading output of external program without Shell
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |