use the URI Module
my $url = URI->new( "http://www.perlmonks.org/index.pl" ); my $domain = $url->host; print $domain;
Originally posted as a Categorized Answer.
In reply to Re: How do you extract the server from a URL?
by mendeepak
in thread How do you extract the server from a URL?
by Mr. Muskrat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |