Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 perusing the Monastery: (11)
As of 2014-09-18 21:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (124 votes), past polls