[ILUG] Silly perl question

Conor McDermottroe lists at mcdermottroe.com
Thu Aug 28 11:14:05 IST 2008


Braun Brelin wrote:
> This should fail miserably with an error about not having $a declared, but,
> unfortunately, it doesn't.  It just prints '10'.

Change $a to $foo and you'll see that strict isn't broken at all.

$a and $b are pre-declared for use in sort subroutines.

-C



More information about the ILUG mailing list