Hello beginners,

  I have a small perl script which checks to see if input is a
  hostname or an IP address before writing it to a file.

  I was just checking to see if the first char was a number or a digit
  but there are some cases where a hostname can start with a number.
  (like 3.14159.com for example)

  So the question is, if I have a variable like $nameserver
  how can I test to see if it's a hostname or an IP?

-- 
Best regards,
 David                          mailto:[EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to