in reply to Re: XML::Simple--dealing with a variable element
in thread XML::Simple--dealing with a variable element
When I used keys in place of each, I get the print line to work, but I'm stuck in an infinite loop in the process.foreach my $dataschema ( values %{ $data->{dataschemas}{dataschema} } +) { while( my ($name, $value) = each %{ $dataschema->{attributes}{attrib +ute} } ){ # do something with the name and value print "\$name is: $name\n\$value is: $value\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: XML::Simple--dealing with a variable element
by rhesa (Vicar) on Jul 27, 2006 at 18:14 UTC | |
by bw (Novice) on Jul 27, 2006 at 21:01 UTC | |
by rhesa (Vicar) on Jul 27, 2006 at 21:06 UTC |