2011-01-30 17:21:25.990853 IP 10.10.10.53.2994 > 205.128.64.126.80 .!)~.....Bb...E..(l8@...lZ 2011-01-30 17:21:26.056348 IP 10.10.10.53.2994 > 205.128.64.126.80 GET /j/MSNBC/Components/Photo/_new/110120-durango_tease.thumb.jpg HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; InfoPath.2) 2011-01-30 17:21:26.078293 IP 205.128.64.126.80 > 10.10.10.53.2994 ...Bb..!)~....E....L../.....@~ #### open FILE, "<", "filename.txt" or die $! while () { if (($_ =~ /^$year\-/) && ($_ =~ /\Q $IP1 \E/) && ($_ =~ /\Q $IP2 \E/)) { print "packet match found!"; } }