good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re^3: How to grep exact string
by tobyink
|
|