Perl's lack of 'in' keyword

Paul LeoNerd Evans leonerd at
Thu Oct 9 00:59:37 BST 2008

On Thu, 9 Oct 2008 00:49:15 +0100
Paul LeoNerd Evans <leonerd at> wrote:

>   my $foo = $a + $b;
> I suppose you'd suggest this can be written
>   my scalar foo is scalar a add scalar b end statement

I suppose this is a little unfair, since my brain is sortof wired to
understand perl and English. Perhaps a better comparison may be

  my $foo = $a + $b[5];


  add scalar a to the fifth element of array b and assign to new scalar

Paul "LeoNerd" Evans

leonerd at
ICQ# 4135350       |  Registered Linux# 179460
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the mailing list