in reply to Re: multiple greps at once-- possible?
in thread multiple greps at once-- possible?
Another solution to your direct problem is to put the "grep { } @arr" in parentheses.Indeed... personally I've never been one to favor the "new" style of only using parens when only absolutely necessary. Precendence rules are tricky (i.e. the && vs. and). By using parens I can at least explicitly tell the compiler what I want (and it helps visually as well, IMHO). I find
much easier to read thanopen(IN, "foo") || die "...";
Michaelopen IN, "foo" or die "...";
|
|---|