There's more than one way to do things | |
PerlMonks |
Re: Different hashes?by Fletch (Bishop) |
on Mar 26, 2004 at 14:58 UTC ( [id://340030]=note: print w/replies, xml ) | Need Help?? |
You're clearing out the entire hash each time through the loop and replacing it with new contents. You want push @{ $AllProducts{ $Category } }, [ $ID, [ $Name, $Type, $Size ] ]. See perldoc perlreftut, perldoc perldsc, and perldoc perllol.
In Section
Seekers of Perl Wisdom
|
|