Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: extract a hostname from a fqdn

by rjt (Deacon)
on Mar 23, 2013 at 23:46 UTC ( #1025095=note: print w/replies, xml ) Need Help??


in reply to extract a hostname from a fqdn

/^ ([^.]+) (?:\.(.+))? $/x; say "Host: `$1', domain: `$2'";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025095]
help
Chatterbox?
[GotToBTru]: probably back when there were 5 or so clauses

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-06-22 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (520 votes). Check out past polls.