On 5/7/07, Tim Wolak <[EMAIL PROTECTED]> wrote:
however I am struggling on how to compare the hash with an array for any duplicate addresses. What is the best approach to take with this?
You want to know whether a given IP address matches any of a list of IP addresses, right? Probably I'd use inet_ntoa (from the Socket module) to turn them into strings, then grep for string equality. But you could try Net::IP to do the comparisons too: http://search.cpan.org/author/MANU/Net-IP-1.25/IP.pm Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/