in reply to Re^2: (almost) foldlin thread (almost) foldl
Ok, ok, I'm quibbling.
Then add a couple of extra spaces :)
say eval join' + ','1e',6;
Bareword found where operator expected at (eval 1) line 1, near "1e"
(Missing operator before e?)
Anyway, print eval join'+0+','1e',6; works okay. Plus, the "+0+" looks nice.
The point is that '1e' is not a valid number in Perl, so your answer of 7 is at best flawed.
C:\test>perl -Mstrict -wE"say 0+'1e'"
Argument "1e" isn't numeric in addition (+) at -e line 1.
DejaVu Sans Mono
Droid Sans Mono
Envy Code R
Source Code Pro
The default, whatever it is
Results (52 votes). Check out past polls.