On Mon, Sep 27, 2010 at 11:15:17PM -0400, Uri Guttman wrote:

> actually the <= part is even more amusing. look here:
> perl -le '$#foo = -2 ; print $#foo'
> -1
> 
> you can't set the last index to < -1. which makes sense. which makes the
> original code even dumber.

$ perl -le '$[=-1; print $#foo'
-2

-- 
David Cantrell | Nth greatest programmer in the world

_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to