in reply to IP Parse and Count from logfile
To print out the list of seen addresses with their counts, use
BTW, you appear to be missing the declaration for $IP (my $IP;), which will be needed for the code to run under strict once the IP regex is uncommented.for my $addr (sort keys %ip_addresses) { print $addr, ': ', $ip_addresses{$addr}, "\n"; }
(Code fragments not tested, but simple enough that they should work... (Famous last words, I know.))
|
|---|