Re: quicky perl question


Subject: Re: quicky perl question
twistedhammer@subdimension.com
Date: Mon Nov 12 2001 - 15:58:21 AKST


It's been a while since I've programmed anything decent, and don't
know about the particular memory issues, but the first possible
solution that pops to mind is this: perhaps you could fork() the
program, have the child process eat up the momory, perform
whatever actions you want, pass whatever data you need back to
the parent process, and then die, thus freeing the memory....

Anybody who knows better, tell me: would this be a solution to his
problem? or just wind up eating more RAM?

Humbly,
   James Gibson

On 12 Nov 2001, at 15:18, Matthew Schumacher wrote:
>
> Michael,
>
> Thanks for the reply...guess you learn something everyday...
>
> Perhaps you can suggest a better way to do what I am going. I want to
> open a log file and look for something in it then close it. The log
> file is 20MB in size. Is there anyway to do this without the perl
> program eating up 20+ MB of memory.
>
> Here is the syntax I am currently using:
>
> foreach $line (reverse <LOGFILE>){
> }
>
> Thanks,
>
> schu

James Gibson
twistedhammer@subdimension.com



This archive was generated by hypermail 2a23 : Mon Nov 12 2001 - 15:58:38 AKST