in reply to Re^2: (almost) foldl
in thread (almost) foldl
Nice! But
print eval join "+", ("1e", 6)
yields 1000000, whereas my aforementioned solution:
print sub {eval 'pop(@_)+' x ($#_ + 1) . '0';}->("1e", 6);
prints the expected result, 7. Ok, ok, I'm quibbling.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: (almost) foldl
by BrowserUk (Patriarch) on Jun 08, 2011 at 21:17 UTC | |
by Grimy (Pilgrim) on Jun 08, 2011 at 21:28 UTC | |
by BrowserUk (Patriarch) on Jun 08, 2011 at 21:34 UTC | |
by Grimy (Pilgrim) on Jun 08, 2011 at 21:40 UTC |
In Section
Obfuscated Code