in reply to Re^4: Pre vs Post Incrementing variables
in thread Pre vs Post Incrementing variables
Waddayaknow! And I've even found a use for it:
print map ${ \( ++$i ) } %= 10, 1..30;; 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
Now all we've gotta do is document it, and we've a valid reason for it working that way: measuring golf games. Perfect :)
|
---|