Rob Dixon schreef: > anilfunde >> for($i=0;$i<0.8;$i=$i+0.1) >> { >> print "$i\n"; >> } > > The correct way to write this is > > for (0 .. 8) { > my $i = $_/8; > print "$i\n"; > }
YM /10. Alternative: for my $p (0 .. 8) { printf "%.1f\n", $p / 10; } -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/