![]() |
|
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?? |
Do this or if you search for "1" it'll find "1" as well as "123"...
return(scalar(grep(/^$element$/, @updatelist))); -julian geek
In Section
Seekers of Perl Wisdom
|
|