Destroying the parser object

26 views
Skip to first unread message

Pankaj SY

unread,
Jan 9, 2012, 6:24:31 AM1/9/12
to Spreadsheet::ParseExcel
Hi,

My code is as below:

my $parser = Spreadsheet::ParseExcel->new(
CellHandler =>
\&excelCellhandler,
NotSetCell => 1,
Parameters => "$makCNur|$deauAnstomach"
);

$parser->parse($currentFileName);


How to destroy the parser object or in other words how to release all
the memory held by the parser object after the parsing has been
completed?


Regards,
Pankaj Singh

jmcnamara

unread,
Jan 9, 2012, 2:51:41 PM1/9/12
to Spreadsheet::ParseExcel
On Jan 9, 11:24 am, Pankaj SY <pankaj.i...@gmail.com> wrote:
>
> How to destroy the parser object or in other words how to release all
> the memory held by the parser object after the parsing has been
> completed?

Hi,

As far as I know, Spreadsheet::ParseExcel contains circular references
and as such the memory in use by the parser isn't released until the
application finishes.

See here for some background:

http://www.perlmonks.org/index.pl?node_id=490656


John.
--
Reply all
Reply to author
Forward
0 new messages