sesemin has asked for the wisdom of the Perl Monks concerning the following question:
If I read a file and make an structure like the following. How can I print out and count the number of elements in this hash. Remember each key has two values and in this case each key may repeat over and over.
push @{ $somehash{$key} }, { 'start' => $start, 'end' => $end }
Thanks, Pedro
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: access and printing of array of hash?
by kyle (Abbot) on Jan 28, 2009 at 21:04 UTC | |
by sesemin (Beadle) on Jan 28, 2009 at 21:18 UTC | |
Re: access and printing of array of hash?
by moritz (Cardinal) on Jan 28, 2009 at 21:01 UTC | |
Re: access and printing of array of hash?
by sweetblood (Prior) on Jan 28, 2009 at 22:41 UTC |