in reply to Getting whois data.

my $dominfo = `whois $_`; #whois('perl.com'); my @split = split /\n/, $dominfo;

That should be just:

chomp( my @split = `whois $_` ); #whois('perl.com');
s/^(\t+|\s+)//sig;

That should be just:

s/^\s+//;
s/\s+/ /sig;

That should be just:

s/\s+/ /g;