How do I extract the domain out of an URL? Is there a Perl Module? I could not find any.
Perl – How to extract the domain out of an URL
perl
Related Question
- Perl – What’s the difference between Perl’s backticks, system, and exec
- Perl – How to fix a locale setting warning from Perl
- Perl – How is Perl’s @INC constructed? (aka What are all the ways of affecting where Perl modules are searched for?)
- Perl – In Perl, what is the difference between a .pm (Perl module) and .pl (Perl script) file
- Perl – Why does modern Perl avoid UTF-8 by default
Best Solution
The URI module can parse URIs for you in a nice OO-ish way. To get the domain part: