Reading from a 7 Mb file, I'm getting an "out of memory!" error after succeding in
printing asome hits using the following script
$tmp = $ENV{TMPDIR};
mkdir $tmp, 0;
$fout = $temp."temp.out";
open FOUT, ">$fout";
$fin = 'BU2:Gutenberg Folder:gutenberg_html.tar';
open FIN, $fin;
while (<FIN>) {
/akespear/ and print FOUT;
}
What am I doing wrong? I thought that doing things this way I was only putting one
line in memory and the hits are printed as lines in the out file just as I wish. The
in file is a Unix tar file.
JD