Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: extract a hostname from a fqdn

by McA (Priest)
on Mar 24, 2013 at 06:52 UTC ( #1025114=note: print w/ replies, xml ) Need Help??


in reply to extract a hostname from a fqdn

Hi,

knowing it's more a question about perl regex I just want to remember that there is a core module Net::Domain giving solutions in the mentioned problem domain.

Update: I've to correct myself. This module gives you the mentioned informations for the currenct host, but doesn't extract these informations from a given string representing domain names.

McA

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2016-07-27 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (242 votes). Check out past polls.