[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Stepping through large text files



I was curious.  I'm stepping through a large PostScript file (200MB) to
extract useful information from it.  I'm using the standard loop:

	while (<>) {
		chop;
		processLine();
	}

Apparently, MacPerl needs as much free memory (plus a little more) as the
size of the file that it is reading in.  Is there anyway to avoid this? I'm
only interested in one line at a time.  I don't need for the whole file to
be resident in memory.

TIA,
Kevin


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch