my $range = 0.1; my $i = 0; while( $i < 10 ) { print $i."\n"; $i = $i + $range; }