#!/usr/bin/perl -w use strict; my %count; open(DOMAINLIST,'; chomp @list; open(RESULT,'){ my $domain; my $i=0; for (my $line=$_){ chomp $line; while($i