That code will not work because your structure is an array of reference.;/p>
You can do if ($data[0]->{Things}->{Thing}->{Item} == "aValue")
I strongly suggest you see Data Structures in the Q&A section of the monastery.
Rule One: Do not act incautiously when confronting a little bald wrinkly smiling man.
In reply to Re^3: XML::Simple and Adding Additional Nested Elements
by psini
in thread XML::Simple and Adding Nested Elements
by Ozeroc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |