my @ppids = map {(split)[2]} grep /$module/,`ps -ef`;
my @ppids = map /$module/?(split)[2]:(), `ps -ef`;
In reply to Re^2: spaces in grep command argument executed in backticks
by jwkrahn
in thread spaces in grep command argument executed in backticks
by chilukuri_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |