.. always counts up. I don't know why, but this workaround will do the trick:
for ( 0 .. 10 ) { my $i = 10 - $_; # do something }
In reply to Re: the '..' operator and decreasing values
by ikegami
in thread the '..' operator and decreasing values
by eXile
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |