Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 ( #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? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2023-03-27 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?