michalgm has asked for the wisdom of the Perl Monks concerning the following question:
Am I just doing something dumb, or should I go ahead and file a bug report? Thanks!#!/usr/bin/perl use HTML::TableExtract qw(tree); my $table = "<table>" . "<tr><td>1</td><td>2</td></tr>" x 100 . "</tab +le>"; my $html = "<html><body>" . $table x 3 . "</body></html>"; foreach ( my $x = 0; $x <= 20; $x++) { my $p = HTML::TableExtract->new(); $p->parse($html); $p->eof; $p->delete; if (-f "/proc/$$/statm") { my $mem = `cat /proc/$$/statm`; $mem =~ s/^(\d+).*/$1/s; print "$x: $mem\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Possible Memory Leak in HTML::TableExtract
by roboticus (Chancellor) on Jan 28, 2009 at 18:47 UTC | |
|
Re: Possible Memory Leak in HTML::TableExtract
by michalgm (Initiate) on Jan 28, 2009 at 21:07 UTC |