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.
In reply to Re: Re: uninitalised value in numeric
by jmcnamara
in thread uninitalised value in numeric
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |