Not sure this is better but I like the look of it:
( $a[$_] += 1 ) %= 10 for 0..9;
In reply to Re: A better (ie.more concise) way to write this?
by hdb
in thread A better (ie.more concise) way to write this?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |