Stick to using integers if you can:
for (my $i = 20 ; $i >= 1 ; $i -= 1){ print $i/10, "\n";
or even:
foreach my $i (reverse (1..20)){ print $i/10, "\n";
In reply to Re: Reduce from 2 to 0.1.
by mirod
in thread Reduce from 2 to 0.1.
by goichi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |