\z instead of $ in the regexps would fix it for recent perls as would a judicously placed chomp - but I'm sure you know this already!print could_be_a_host("www.domain.com\n"); # says 1
In reply to RE: Test the syntactic validity of a domain name
by ncw
in thread Test the syntactic validity of a domain name
by merlyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |