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)?
In reply to Re^2: HTML::Parser Skip Style Content
by almut
in thread HTML::Parser Skip Style Content
by spickles
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |