if (length $link->{LatitudLongitud} > 5) { if (!$seen->{$link->{LatitudLongitud}}) { push @{$GoogleMaps::records->{$link->{LatitudLongitud}}}, $link; $seen->{$link->{LatitudLongitud}} = 1; # make sure we set this, so we know its been seen already! } else { push @{$GoogleMaps::records->{$link->{LatitudLongitud}}}, $link; } } if (length $link->{LatitudLongitud02} > 5 && $link->{LatitudLongitud} ne $link->{LatitudLongitud02}) { if (!$seen->{$link->{LatitudLongitud02}}) { push @{$GoogleMaps::records->{$link->{LatitudLongitud02}}}, $link; $seen->{$link->{LatitudLongitud02}} = 1; # make sure we set this, so we know its been seen already! } else { push @{$GoogleMaps::records->{$link->{LatitudLongitud02}}}, $link; } } #### '13.709931,-89.202365' => [ $VAR1->{'13.704011,-89.247029'}[0] ], '13.687479,-89.221301' => [ { 'isPopular' => 'No', 'Curri_Desc18' => '', 'ExpiryNotify' => '0' } ], '13.699487,-89.231086' => [ { 'isPopular' => 'No', 'Curri_Desc18' => '', 'ExpiryNotify' => '0' } ], #### 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"; } }