in reply to Leading Zeros confound eval() ?

Any number starting with "0" within the code is considered to be octal.

Replies are listed 'Best First'.
Re^2: Leading Zeros confound eval() ?
by stevieb (Canon) on Jul 21, 2015 at 19:07 UTC

    Yep, and it's easy to demonstrate...

    perl -e 'my %h = (09 => 9);' Illegal octal digit '9' at -e line 1, at end of line