$seen{$item}{count}++ # to increment the Count push @urls, $item unless $seen{$item} $seen{$item}++ # To store the url