Will Conant <WillC / webmiles.com> writes:

> Over the weekend, I put together my first real Perl project. Perl, of
> course, is not strictly object oriented... it's not strictly anything!
> 
> During the course of the project, I found myself wanting to find out if a
> list contained some particular string... it took my 1.5 hours to
> definitively find out that there was no built-in way to do that... you just
> had to iterate through the list and check on your own.

grep {$_ eq 'target_string'} @list

However, if @list is big then grep doesn't (yet) short circuit, so I
take your point. And if you want to find out *where* in the list it
found you'll definitely have to write your own loop.

-- 
Piers Cawley
www.iterative-software.com