in reply to IP Address Sanity
Also, you want to accept IP addresses for something. NetAddr::IP makes most of what you might want to do easy. There's also a Tutorial within the monastery about how to do stuff with this.use NetAddr::IP; if (defined NetAddr::IP->new($myip)) { ... Your code goes here ... } else { die "Do not feed me with garbage!\n"; }
You can download the module from here or any friendly CPAN mirror.
Disclaimer: I wrote NetAddr::IP so I might be a bit biased :) Best regards
-lem, but some call me fokat
|
|---|