The square brackets indicate array refs so you need an element index (a number). So ['mass'] won't work.print $doc->{species}{$key}{'physical-characteristics'}[0]{mass}[0] # and print $doc->{species}{$key}{'physical-characteristics'}[0]{appearance} +[0]
In reply to Re^3: XML::Simple Multi-Layered
by wfsp
in thread XML::Simple Multi-Layered
by eide
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |