good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Hash of Hashesby BioNrd (Monk) |
on Oct 08, 2007 at 12:57 UTC ( [id://643449]=perlquestion: print w/replies, xml ) | Need Help?? |
BioNrd has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I am interested in creating a hash of hashes that will contain variables that are set by the user. I have put this together to create a hash of a variable (population size, @total) that is sent into this subroutine. $tester is also sent into the array and is the number of populations that the user creates.
Later in the code, I take the $output value and turn it into an array that is modified, and i want to then return it to the hash in the following format: The other thing I wanted to do, is be able to modify the arrays at the lower level of the hash, as I have done for my simple hash above. Something I have no idea how to do. I have only been at this two weeks, and this is my first attempt at programming. Any help on any aspect of this post would be greatly appreciated. Thanks monks!
Back to
Seekers of Perl Wisdom
|
|