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
return(scalar(grep(/^$element$/, @updatelist)));
-julian geek
|
---|
In Section
Seekers of Perl Wisdom