in reply to Re^4: Array size issuein thread Array size issue
myself I'd rewrite two of your "ifs."
next unless ($line =~ m@on $ipaddress@); last if scalar(@matches) >= 2; [download]