in reply to Adding elements to hashes of arrays...
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Adding elements to hashes of arrays...
by alincoln (Acolyte) on Oct 29, 2003 at 16:31 UTC |