in reply to Re: Floating point number counting script stuck in a loop
in thread Floating point number counting script stuck in a loop
But when I use -w and use strict; I get those same compilation errors. What is an explicit package name? What I've found about this error is that it has something to do with having not declared a variable you're trying to use under -w or use strict;, but I've declared my only variable. I don't suppose it especially matters if it compiles at all, but I'm curious now.#!/usr/bin/perl $count = .0; while ($count < .9) { $count = $count + .1; print ($count, "\n"); } print ("End!\n");
|
|---|