Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 scrutinizing the Monastery: (8)
As of 2014-09-22 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (186 votes), past polls