jpeg has asked for the wisdom of the Perl Monks concerning the following question:
Of course, creating 9 objects and parsing the same file 9 times bugs me. I looked at the docs more closely and sawfor ($mycount = 1; $mycount <=9; $mycount++) { my $te = new HTML::TableExtract ( depth => 1, count => $mycount ) +; # more stuff }
which leads me to believe it's possible to reuse the $te object. However, I don't see a way to specify depth and count for an already existing object. Has anyone done this?reset_state() If you are using the same HTML::TableExtract object for multiple p +arses, call this between each parse to wipe the internal slate clean.
Thanks,
John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to re-use HTML::TableExtract objects?
by tphyahoo (Vicar) on May 30, 2005 at 15:29 UTC | |
by holli (Abbot) on May 30, 2005 at 15:47 UTC | |
by jpeg (Chaplain) on May 30, 2005 at 21:32 UTC | |
|
Re: How to re-use HTML::TableExtract objects?
by graff (Chancellor) on May 30, 2005 at 16:55 UTC |