Perl's lack of 'in' keyword
Paul Makepeace
paulm at paulm.com
Tue Oct 7 17:41:59 BST 2008
On Tue, Oct 7, 2008 at 4:11 PM, Andy Armstrong <andy at hexten.net> wrote:
>
> 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) {
>> # ...
>> }
>
> Smart match innit?
>
> use 5.010;
> if ( $bar ~~ @foo ) {
> # ...
> }
Oh cool. I think my Debian being stuck on 5.8 demotivated me from
learning about 5.10.
Paul, more motivated now
>
> --
> Andy Armstrong, Hexten
>
>
>
More information about the london.pm
mailing list