Perl Monk, Perl Meditation | |
PerlMonks |
Re: Efficient Way to Parse a Large Log File with a Large Regexby Fletch (Bishop) |
on Apr 12, 2005 at 17:36 UTC ( [id://447110]=note: print w/replies, xml ) | Need Help?? |
If you just want to check for the presence of one of a group of IPs it'd be much more efficient to build a hash of the IPs up front, and then parse out the IP from each record and do an exists $wanted{ $curIP } to tell if it's interesting or not.
In Section
Seekers of Perl Wisdom
|
|