Perl's lack of 'in' keyword

Mark Blackman mark at blackmans.org
Tue Oct 7 17:06:07 BST 2008


On 7 Oct 2008, at 17:01, Chris Jack wrote:

> Mark Blackman mark at blackmans.org wrOte
>> List::Util::first > or > List::MoreUtils::any > for older perls,  
>> perhaps.
>
>
> or even grep(/^$job$/, @list)

true, but I'd say a regex search is over the top for non regex searches.

List::MoreUtils uses C, so that appeals the pointless optimiser in me.

- Mark


More information about the london.pm mailing list