There's more than one way to do things | |
PerlMonks |
RE: Test the syntactic validity of a domain nameby ncw (Friar) |
on Sep 22, 2000 at 18:00 UTC ( [id://33632]=note: print w/replies, xml ) | Need Help?? |
It matches newlines at the end of the domain name :-
\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!
In Section
Cool Uses for Perl
|
|