Perl's lack of 'in' keyword

Dirk Koopman djk at tobit.co.uk
Thu Oct 9 14:13:19 BST 2008


Jonathan Stowe wrote:
> 2008/10/9 Andy Armstrong <andy at hexten.net>:
>> On 9 Oct 2008, at 01:39, Iain Barnett wrote:
> 
>>> if a in b               #this is even better IMO
> 
> I think this is the previous without *any* "funny characters". Y'know
> like python or cobol or C
> 

One presumes that this sort of thing:-

my @l;

foreach my $l (@l) {
    ...
}

is now (even more) deprecated by the perl thought police?


More information about the london.pm mailing list