@ps=grep {/$module/ and not /grep/} @ps;
Why would you try to match the string /grep/ when you are using Perl's grep function. That makes no sense at all.
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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |