|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re^3: How to grep exact stringby tobyink (Prior) |
| on Nov 15, 2012 at 08:49 UTC ( #1003962=note: print w/ replies, xml ) | Need Help?? |
|
My suggested grep has been correct Perl syntax since Perl 5.0. (Perhaps before?) Note there are no parentheses after the grep... not this:
And note that there's no comma after the block... not this:
It just needs to be like this:
If you really want parentheses, they can go on the outside:
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||