BioNrd has asked for the wisdom of the Perl Monks concerning the following question:
PartA:
This should reference values generated in the HoH below.@value = {$hoh{$newcount}{'individual'}}; print "@value \n";
However, it gives me HASH(0x180bef4) rather then the list I want, and throws this warning: Odd number of elements in anonymous hash at (I can't follow previous discussion they are greek to me)...I figure the answer is something simple, I just can't figure out what the simple thing is.... { $HoH{$counter} = { individual => [ @newind ], chromasome1 => [ @newchroma ], chromasome2 => [ @newchromb ], }; } ...
PartB: Once this works can I then modify the @value, and replace @newchroma with @value? Sounds simple to say...but I am not seeing how this is easy to do. Thanks monks...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why is this not what I think it is...
by GrandFather (Saint) on Nov 06, 2007 at 01:32 UTC | |
|
Re: Why is this not what I think it is...
by graff (Chancellor) on Nov 06, 2007 at 03:49 UTC | |
|
Re: Why is this not what I think it is...
by BioNrd (Monk) on Nov 06, 2007 at 14:24 UTC |