Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Extracting a domain name from a url

by rhesa (Vicar)
on Oct 15, 2006 at 14:30 UTC ( [id://578384]=note: print w/replies, xml ) Need Help??


in reply to Extracting a domain name from a url

Check out URI.
use URI; my $uri = URI->new( 'http://yahoo.co.uk/notfound.html' ); print $uri->host;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://578384]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-20 00:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found