Chad Kellerman wrote:
> Use of uninitialized value in addition (+) at scripts/hits.pl line 14,
> <IN> line 20569.
> ...
> The problem lies in the line that says:
>
> $hits{$hour} = $hits{$hour}+1;
>
> What it the best way to create a counter?
>
> I have seen $var++, it would not work here I had to use +1.
It also works in this case:
$hits{$hour}++
should run without any problems or warnings.
Greetings,
Janek
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]