IMO, the grep route is the cleanest way:
$xref->{node} = [grep { $_->{val} != 2; } @{$xref->{node}}];
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re: How to remove elements from XML data?
by jasonk
in thread How to remove elements from XML data?
by waxmop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |