Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: extract a hostname from a fqdn

by McA (Curate)
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


Comment on Re: extract a hostname from a fqdn
Download Code

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 taking refuge in the Monastery: (5)
As of 2014-08-30 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls