in reply to How to return two and more values by parsing XML with XML::Rules?
my (@am_keys, @lk_keys); my @rules = ( AM_Key => sub { push @am_keys, $_[1]{_content}; return }, LK_Key => sub { push @lk_keys, $_[1]{_content}; return }, _default => undef, ); my $xr = XML::Rules->new( rules => \@rules );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to return two and more values by parsing XML with XML::Rules?
by Jenda (Abbot) on Nov 08, 2012 at 07:56 UTC | |
|
Re^2: How to return two and more values by parsing XML with XML::Rules?
by vagabonding electron (Curate) on Nov 07, 2012 at 12:23 UTC |