in reply to Re^2: Floating point number counting script stuck in a loop
in thread Floating point number counting script stuck in a loop

When using strict (which is a good thing), declaring variables happens like this:
my $count;
Technically, you've initialised a variable, not declared it. Doing both at the same time:
my $count = 0.0;
Update: This link may prove helpful.
Declaring variables

Replies are listed 'Best First'.
Re^4: Floating point number counting script stuck in a loop
by Vonunov (Novice) on Oct 25, 2007 at 08:09 UTC
    Ooh, thanks, that's wonderful. I assumed a variable was declared by being assigned a value in the first place.
    Cheers. :D