It's hard to check without the data, but you could do $qp->children( 'q[@supp != "yes"]'). Actually if all you want is the number of such children, you can use the children_count method instead of taking scalar ( $qp->children....
In reply to Re: XML::twig counting elements that don't have a certain attribute/value on them
by mirod
in thread XML::twig counting elements that don't have a certain attribute/value on them
by mertserger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |