in reply to Looping through a hash where some keys are the same
Or use Tie::DxHash this tied hash allows duplicate keys.my @array = ( [ bob => "section-a"], [ bob => "section-b"] ); for ( @array ) { my ( $a, $b ) = @$_; print "$a => $b\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Looping through a hash where some keys are the same
by atcroft (Abbot) on Feb 18, 2005 at 01:40 UTC | |
by GaijinPunch (Pilgrim) on Feb 18, 2005 at 01:56 UTC | |
by tphyahoo (Vicar) on Feb 18, 2005 at 11:17 UTC |