in reply to Re: Out of Memory..
in thread Out of Memory..

my $b1 = do { local $/; <$f1_p> };
is not as good as
my $b1; { local $/; $b1 = <$f1_p> }
But the OP should use mmap or whatever it's called on Windows.