in reply to Extracting a domain name from a url
use URI; my $uri = URI->new( 'http://yahoo.co.uk/notfound.html' ); print $uri->host; [download]