in reply to extract a hostname from a fqdn
/^ ([^.]+) (?:\.(.+))? $/x;
say "Host: `$1', domain: `$2'";
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (399 votes). Check out past polls.