Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: How to remove duplicate IPsby rjt (Curate) |
on Aug 07, 2013 at 22:53 UTC ( [id://1048454]=note: print w/replies, xml ) | Need Help?? |
You're close; the next step is to keep track of the IP addresses you have already seen, and print to your output file only if you encounter a new one. I would structure your loop like this:
I used the following test data:
And got this output:
use strict; use warnings; omitted for brevity.
In Section
Seekers of Perl Wisdom
|
|