if (length $link->{LatitudLongitud02} > 5 && $link->{LatitudLongitud} ne $link->{LatitudLongitud02}) { if (!$seen->{$link->{LatitudLongitud02}}) { push @{$GoogleMaps::records->{$link->{LatitudLongitud02}}}, "FOO"; $seen->{$link->{LatitudLongitud02}} = 1; # make sure we set this, so we know its been seen already! } else { push @{$GoogleMaps::records->{$link->{LatitudLongitud02}}}, "FOO"; } }