in reply to the '..' operator and decreasing values
.. always counts up. I don't know why, but this workaround will do the trick:
for ( 0 .. 10 ) { my $i = 10 - $_; # do something }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: the '..' operator and decreasing values
by merlyn (Sage) on Mar 04, 2005 at 22:31 UTC | |
by ikegami (Patriarch) on Mar 04, 2005 at 22:33 UTC | |
by merlyn (Sage) on Mar 04, 2005 at 22:35 UTC | |
by lidden (Curate) on Mar 05, 2005 at 02:13 UTC | |
by doom (Deacon) on Mar 06, 2005 at 00:28 UTC | |
| |
by Tanktalus (Canon) on Mar 05, 2005 at 00:41 UTC | |
by thor (Priest) on Mar 04, 2005 at 22:50 UTC |