Hi DeRykus Sorry for replying late.
I was able to test DB_File with your example, thanks. But i'm facing a problem. I'm not able to access multi dimensional array with this DB_File. Address is being stored just a string. Do we have some options where we can access multi dimensional arrays (like two dimensional array from html tables) Thanks Jins Thomas On Sat, Jan 8, 2011 at 10:45 AM, C.DeRykus <dery...@gmail.com> wrote: > On Jan 5, 10:56 pm, jinstho...@gmail.com (Jins Thomas) wrote: >> Hi experts, >> >> Have you ever experienced Out of memory problem while using >> HTML::TableExtract. I'm having little large html files, still i didn't >> expect this to happen >> >> Would you be able to suggest some workarounds for this. I'm using this >> subroutine in another for loop. >> > [snip] > > Using a DBM may help as you grow arrays. The DBM > will trade memory for disk. A very simple example: > > use DB_File; > ... > tie @ldata, 'DB_File', 'ldata.dbm' > or die " tie failed: $!" > > > If HTML::TableExtract itself is using too much memory, > you may be able to replace it with a lighter regex that > you devise on your own to pull out the table data. But > this will be reliable only if the HTML is known to be > generated programmatically for instance so there's no > variance. > > -- > Charles DeRykus > > > > > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/