Re: help with subroutines and reading/writing to file

2008-12-02 Thread Jim Hill
blake in <[EMAIL PROTECTED]>: > I am new to perl and attempting to write a script that will do a reverse dns > lookup on an ip [snip] Just looking that far, I don't think your script will work as you intend. Here's a ptr lookup using dig ... | dig -x 217.151.101.100 | 100.101.151.217.in-addr.ar

Caching wildcard ip addresses

2008-01-23 Thread Jim Hill
Hi all I have dos-style wildcard ip addresses and some ip address ranges held in a text file, one per line like this ... 127.0.0.0/8 10.0.0.0-10.0.1.255 192.168.1.* 172.?.*.* 10.0.1?.* ... which I'm trying to convert into cidr notation to use with Net::CIDR to create a lookup cache. The first e