in reply to find the domain name from subdomian
URI, Regexp::Common::dns$ perl -MURI -le"print URI->new( shift )->host " http://search.cpan.or +g/ search.cpan.org $ perl -MURI -le"print join q!.!, (split /\./, URI->new( shift )->host +)[-2,-1] " http://search.cpan.org/ cpan.org
|
|---|