Hi all, today I discovered a perl 5 misfeature:
shlomif@telaviv1:~$ perl -E 'use integer; say 13 ** 17' 8.65041591938134e+18 Apparently the "**" exponentiation operator is done using floating-point even when "use integer;" is in effect (and in this case, the integer does not overflow on my 64-bit machine). I discovered it while working on a Project Euler problem: https://projecteuler.net/problem=377 In my case, it was easy to fix. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Freecell Solver - http://fc-solve.shlomifish.org/ <danderson> “We are NO LONGER the knights who say ‘BitKeeper’. We are now the knights who say ‘git, git, git, cogito — Linus!’.” Please reply to list if it's a mailing list post - http://shlom.in/reply . _______________________________________________ Perl mailing list [email protected] http://mail.perl.org.il/mailman/listinfo/perl
