in reply to Re^4: Floating point number counting script stuck in a loop
in thread Floating point number counting script stuck in a loop
Does the same as the question asks - likely wouldn't have accomplished the aim of the exercise, which was probably to teach you about using == with floats, but well ;) See perlvar for explanation of $_#!/usr/bin/perl -w use strict; for (1..9) { print $_/10, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Floating point number counting script stuck in a loop
by GrandFather (Saint) on Nov 16, 2007 at 21:48 UTC | |
by dwu (Monk) on Nov 16, 2007 at 22:24 UTC | |
|
Re^6: Floating point number counting script stuck in a loop
by Vonunov (Novice) on Oct 25, 2007 at 10:12 UTC |