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/