Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: How to check whether my array contains element x

by tobyink (Abbot)
on Jan 17, 2013 at 13:24 UTC ( #1013779=note: print w/ replies, xml ) Need Help??


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'


Comment on Re^2: How to check whether my array contains element x
Select or Download Code
Re^3: How to check whether my array contains element x
by vinoth.ree (Parson) on Jan 18, 2013 at 05:31 UTC
    ++ tobyink

    Thanks for the info!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013779]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-11-28 09:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (195 votes), past polls