in reply to Re: HTML::Parser Skip Style Content
in thread HTML::Parser Skip Style Content

In that case, use an array as a stack for your "flag"...

Wouldn't incrementing/decrementing a simple scalar serve the same purpose (indicating the level of nestedness — similarly to counting opening/closing parentheses)?

Replies are listed 'Best First'.
Re^3: HTML::Parser Skip Style Content
by runrig (Abbot) on Mar 09, 2010 at 23:22 UTC
    Um, yeah, that'd work too. And is simpler. 8-)

      Thanks guys! I'll give those a try ...