in reply to Re: Parsing 12GB Entourage database in pieces...
in thread Parsing 12GB Entourage database in pieces...

my $str = ''; my $tmp; while (read($handle, $tmp, 32*1024)) { $str .= $tmp;

can be written as

my $str = ''; while (read($handle, $str, 32*1024, length($str))) {

Also,

pos($str) = 0;

is already done by

$str = substr($str, pos($str));

(Well, pos($str) = undef; is.)