Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Answer: How to find out if X is an element in an array?

by juliansnail (Initiate)
on Apr 07, 2004 at 00:08 UTC ( [id://343165]=note: print w/replies, xml ) Need Help??


in reply to Re: Answer: How to find out if X is an element in an array?
in thread How to find out if X is an element in an array?

Do this or if you search for "1" it'll find "1" as well as "123"...
return(scalar(grep(/^$element$/, @updatelist)));
-julian geek
  • Comment on Re: Re: Answer: How to find out if X is an element in an array?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-20 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found