in reply to Re: How to check whether my array contains element x
in thread How to check whether my array contains element x
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'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to check whether my array contains element x
by vinoth.ree (Monsignor) on Jan 18, 2013 at 05:31 UTC |
In Section
Seekers of Perl Wisdom