Hi,

I have made a perl module object oriented which is something like this:

use Spreadsheet::ParseExcel;
use DBI;

...

sub new {
...
}

sub parse {

my $dbh = ...;

#here some Excel files parses and database updates...
}

Then I access the parse() method in another program that feeds the module
with more Excel files (around 500 files).

After more files parsed (around 300), the memory is full.

Please tell me what can I do to free the memory after each file parsed by
the module.

I run this program manually or by a cron job, but I would like to know
better how to free the memory because I might want to use it under mod_perl.

Thank you very much for any tip.

Teddy


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to