thanks for this wonderful program. Could you change the regex in your code to include hostnames with hypens: elsif ($host =~ /^([-\w.]+)(?:([\d,-]+)(?:(\D+))?)?/) thanks, fred
thanks for this wonderful program. Could you change the regex in your code to include hostnames with hypens:
elsif ($host =~ /^([-\w.]+)(?:([\d,-]+)(?:(\D+))?)?/)
thanks,
fred