Missing first arg in list causes error

Andy Lester andy at petdance.com
Sat Feb 11 13:54:27 GMT 2006


>   $ perl -le 'print [,"",,]'
>
> Why does the first one fail?

Because it's not valid syntax.  You can have an empty trailing comma,  
but not a leading one.

--
Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance





More information about the london.pm mailing list