my $match = qr/foo|bar/; for my $i (0 .. $#{ $ref->{news} }) { if ( $ref->{news}[$i]{title} =~ $match ) { splice @{ $ref->{news} }, $i, 1; } }
In reply to (ar0n) Re: Munging a XML data
by ar0n
in thread Munging a XML data
by mexnix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |