http://qs321.pair.com?node_id=93921

Brian Matchick has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to automate our net abuse report and am having a tough time extracting a list of IP addresses from a file. All I want to do is go though the file and build a list of every IP address contained within. I've worked out the regex to match lines containing ip addresses, but am having some trouble finding a way to actually obtain the IP numbers that it matches. The $1, $2 business is turning out to be a bit confusing. Can anyone help me out with a code example? Thanks a lot! Brian bmatchick@mindspring.com