Majian wrote:
I found these :
perl -e'print 01.234 + 01.234', "\n"'
perl -e'print 01.234 + 011.234' "\n"'
perl -e'print 01.234.12 + 01.234', "\n"'
And the results were :
1235234
1235234
1235.12234
For other surprises, try also:
perl -wle 'print length(01.234.12)'
perl -wle 'print 01.234.12'
perl -wle 'print length(1.234.12)'
perl -wle 'print length(0+1.234.12)'
--
Ruud
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/