Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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
Replies are listed 'Best First'.
Re^3: How to check whether my array contains element x
by vinoth.ree (Prior) 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 perusing the Monastery: (11)
As of 2015-07-07 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls