Hello David, Tuesday, April 30, 2002, 7:51:29 PM, you wrote:
DU> I was just checking to see if the first char was a number or a digit DU> but there are some cases where a hostname can start with a number. DU> (like 3.14159.com for example) Sorry to reply to my own post, but a friend just pointed out to me that a hostname can't END in a number. (com/net/org/whatever) so: if ($hostname =~ /\d$/) { ip } else { hostname } should work. I'm still interested in seeing replies though. :-) -- Best regards, David mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]