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.
When you use strict; (highly recommended btw.) you need to declare your variables so you need to stick my in front of the first assignment to $count. However, I'd be inclined to use a C type for loop in this case (note the declaration inside the loop header):
use strict;
use warnings;
for (my $count = 0.0; $count < 0.9; $count += 0.1) {
print "$count\n";
}
print "End!\n";
Huh, I wonder why the tutorial uses (), then? Do they have any purpose or does it just make things look nice, what with all the rounded-off ends? XD
Thanks for that, by the way, I've always wanted to be able to compress scripts to be painfully tiny. (No sarcasm, it really does look impressive).
I did read that variables can be put in strings and I had it that way at the beginning, but I thought it might have been the problem and never changed it back after I tested that.