... and you don't even have to write the pattern yourself.
use Regexp::Common 'net'; $ip =~ /^$RE{net}{IPv4}\z/ or die;
lodin
In reply to Re^2: IP to hex translator
by lodin
in thread IP to hex translator
by actualize
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |