in reply to Another Array Problem: comparing.

I've got not a clean solution but it works:

replace

push(@dst, $dst); push(@service, $service);
with
@data{$dst}{$service}++; if ($data{$dst}{$service} == 50) { do magic; }

-- package Lizard::King; sub can { do { 'anything'} };