Perl's lack of 'in' keyword
Paul LeoNerd Evans
leonerd at leonerd.org.uk
Thu Oct 9 00:59:37 BST 2008
On Thu, 9 Oct 2008 00:49:15 +0100
Paul LeoNerd Evans <leonerd at leonerd.org.uk> 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];
and
add scalar a to the fifth element of array b and assign to new scalar
foo
--
Paul "LeoNerd" Evans
leonerd at leonerd.org.uk
ICQ# 4135350 | Registered Linux# 179460
http://www.leonerd.org.uk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://london.pm.org/pipermail/london.pm/attachments/20081009/caf226f8/signature.pgp
More information about the london.pm
mailing list