Perl's lack of 'in' keyword

Abigail abigail at abigail.be
Tue Oct 7 16:09:56 BST 2008


On Tue, Oct 07, 2008 at 04:04:11PM +0100, 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) {
>     # ...
>   }
> 
> (Does Perl 6 have it?)


Why wait for Perl 6? Perl 5 has had it for almost a year now. It's
spelled ~~ though.



Abigail


More information about the london.pm mailing list