It's complaining about the > test because at the time $counter has not yet
been initialized.
It is initialised:
my $counter=0;
You're expecting $counter to have a value, you should look at your code and see where you
aren't assigning something to it where you should. The $counter will always have a value, it is initialised and incremented, there is no subsequent assignment.
--
John.
|