So you dereference the array in the hash ref (you were treating it as a hash) and push on an anonymous hash. See. perlreftut and tye's References quick reference for a good start on references in perl.push @{ $gxmlConfigDoc->{item} }, { ... };
_________
broquaint
In reply to Re: Adding elements to hashes of arrays...
by broquaint
in thread Adding elements to hashes of arrays...
by alincoln
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |