in reply to Re^2: Searching large files a block at a time
in thread Searching large files a block at a time

Bunzip2's getline works just like <>; you can set $/ = "\n\n" to read in paragraph mode. It doesn't seem to be all that well optimized, though. You might try this:
open my $BZ, "bzcat $file |"; while (<$BZ>) { ... }