in reply to Increment frequency of attempts based on IP and login details combination

As a side note (because i do understand the usefulness of your desired output) some general suggestions:
$ip = ""; $port = ""; $usr = ""; $port = ""; $status = ""; $frequency = 0;
is unneeded and error prone because reveals the absence of use strict; use warnings; In fact in a more concise, more robust, less error prone way you can say:
my ($ip,$port,$port,$status,$frequency);

Read this post to understand why. In Perl, given your variable declaration, you can freely do the following:

#string? #number? #add to string? #concatenate to numb +ers? my $ip=""; my $freq = 0; $ip++; $freq.="still no data +";

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.