Perl's lack of 'in' keyword

Mark Blackman mark at blackmans.org
Tue Oct 7 16:13:34 BST 2008


On 7 Oct 2008, at 16:04, Paul Makepeace wrote:

> ... is starting to frustrate me. It's the one feature I am finding I'm
> really missing from That Other Language.
>
>  if ($bar in @foo) {
>    # ...
>  }

List::Util::first

or

List::MoreUtils::any

for older perls, perhaps.



More information about the london.pm mailing list