Someone else may know better, but as far as I know, memory management is one
of those things Perl tries *real hard* to avoid. Even if you can track
memory usage, you still need to process the data file in chunks.
You are better off getting your program to read a record, process it, read
another, process it, ad nauseum. There is *always* a file that is "too big"
to read in its entirety.
If your logical record does not match a physical record (line boundary), you
may need to write a subroutine that returns the "next logical record".
> -----Original Message-----
> From: sloan.scott@... [mailto:sloan.scott@...]
> Sent: Thursday, August 31, 2000 1:47 PM
> Subject: [PBML] Re: Memory Management
> How about tracking how much memory is in use? When it reaches a
> certain limit then flag on it. Is that possible?