Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
c-style for loop versus list for loop, and bigintby AR (Friar) |
on May 19, 2011 at 20:12 UTC ( [id://905791]=perlquestion: print w/replies, xml ) | Need Help?? |
AR has asked for the wisdom of the Perl Monks concerning the following question: Hello Monks, I am completely stumped by why these two pieces of code act so differently when I run them. This came from a project euler question 48, if you're interested. Consider
versus:
The first piece of code assigns inf when $i == 145, but the second piece of code keeps on going. Why is the case?
Back to
Seekers of Perl Wisdom
|
|