good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Need a better way to break out a range of addresses...by ptum (Priest) |
on Mar 28, 2007 at 19:42 UTC ( [id://607090]=note: print w/replies, xml ) | Need Help?? |
I would probably use split or a regex to grab the IP address string (and the last octet range) from each line of the file. Then I would step from the beginning of the range to the end of the range, constructing each IP address and writing it out as I went. So, you'll want to do the following things:
Show us what you have tried, and we'll be glad to help!
In Section
Seekers of Perl Wisdom
|
|