in reply to Re^2: Efficient log parsing?
in thread Efficient log parsing?

Good catch.

OK - here is a somewhat contrived variation that seems to work for me:

use strict; $_="this that other thing that thw tests sometimes"; my $regex = qr/(t..)\w+\s+?(\w\w)(.+)/; my @buffer; my @x; while ( (@x[0..1],$_) = /$regex/) { push @buffer, [ @x ]; print join(",",@x) . ";\n"; }
Changes:

     "As you get older three things happen. The first is your memory goes, and I can't remember the other two... " - Sir Norman Wisdom