my $url='http://yahoo.co.uk/notfound.html'; my $host=(split m(/+), $url)[1];