You need to check for the existence of $searches{$conn} before you use if as an array reference! ;)
for my $user (keys %users) { for my $conn (@{$users{$user}}) { if( exists $searches{$conn} ) { print "User $user had ".scalar( @{$searches{$conn}} )." searches + on connection $conn\n"; print "\t=> Bad user!\n" if @{$searches{$conn}} > 3; } } }
In reply to Re: Undefined Error
by hdb
in thread Undefined Error
by johnrein55
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |