The difference between your two statements is that in the first one, you actually reach the last. But m/2/ && $i++ is never true. m/2/ is true only once, but then $i is still 0. Just add a 12 to your data file and notice the difference. In the expression $i++ && m/2/, $i is incremented each time, not only when there's a 2 in the input, making all the difference in the world.
In reply to Re: Last oddity
by Anonymous Monk
in thread Last oddity
by Hena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |