in reply to
Leading Zeros confound eval() ?
Just a guess... in the
eval
, Perl interprets 016 as an octal number, which equals 14 decimal. 14x10=140 (
Scalar value constructors
).
print 016*10, "\n"; 140
[download]
Comment on
Re: Leading Zeros confound eval() ?
Download
Code
In Section
Seekers of Perl Wisdom