|
|
| "be consistent" | |
| PerlMonks |
Re^2: How to check whether my array contains element xby tobyink (Monsignor) |
| on Jan 17, 2013 at 13:24 UTC ( #1013779=note: print w/ replies, xml ) | Need Help?? |
|
Works nicely until $value = "http+listener+1". Make sure you \Q...\E or quotemeta your value.
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
|
|
||||||||||||||||||||||