in reply to Re^2: How to grep exact string
in thread How to grep exact string
My suggested grep has been correct Perl syntax since Perl 5.0. (Perhaps before?)
Note there are no parentheses after the grep... not this:
grep({ ... } @list)
And note that there's no comma after the block... not this:
grep { ... }, @list
It just needs to be like this:
grep { ... } @list
If you really want parentheses, they can go on the outside:
(grep { ... } @list)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to grep exact string
by frozenwithjoy (Priest) on Nov 15, 2012 at 08:55 UTC |