⭐ in reply to How do you extract the server from a URL?
use Regexp::Common; my $url = 'http://www.perlmonks.org/index.pl'; print $3 if $url =~ /$RE{URI}{HTTP}{-keep}/;
Abigail
|
---|
In Section
Seekers of Perl Wisdom
⭐ in reply to How do you extract the server from a URL?
use Regexp::Common; my $url = 'http://www.perlmonks.org/index.pl'; print $3 if $url =~ /$RE{URI}{HTTP}{-keep}/;
Abigail
|
---|