in reply to Re: Re: Using HTML::Parser extract text from tables
in thread Using HTML::Parser extract text from tables

You are right about that @save and undefined values thing. My brain must have fallen asleep there for a while.

Pushing tablenr will fix the recursive table though. You still increase $count each time you encounter a table start. You also set $tablenr to $count. Its only on table end that you restore $tablenr, but you do _not_ restore $count. Hence, each table is given a unique, increasing number.

Have you tried it btw? I haven't. so I'm only speaking theoretically here....

regards,

GoldClaw

  • Comment on Re: Re: Re: Using HTML::Parser extract text from tables