In article <4YHof.11993$fY5.2618@trnddc02>, Jürgen Exner
<ju******@hotmail.com> wrote:
somebody wrote: How do I check if $myvar matches 'two' in @arr?
I know I could iterate through the array with
a foreach statement, but was wondering if there
was a more efficient method.
perldoc -q contains
In my version (5.8.6) you have to search for "contained"
FYI to OP: this newsgroup is defunct; try comp.lang.perl.misc in the
future.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com