in reply to How to access data from arrays with XML::Simple
Be sure and check out tye's excellent References quick reference also.use strict; use warnings; use XML::Simple; use Data::Dumper; my $ref = XMLin(\*DATA, forcearray=>1, keyattr=>{wrapper=>"name"}); # feel free to uncomment these Dumps #print Dumper $ref; for (@{$ref->{wrapper}{'testName 1.0.3'}{parm}}) { #print Dumper $_; while(my ($k,$v) = each %$_) { print "$k => $v\n"; } } __DATA__ <config> ... rest of XML ...
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|