in reply to Problem cycling through top level of nested hashes
foreach my $lig (values %{$ligHash}) { DoDump($lig); }
This will feed only the sub-hashes into your subroutine (see values).
Regarding memory usage: Today, 6.5 MB is not all that much, unless you are using legacy hardware or developing toward mobile apps. The definition of "a lot" depends strongly on application.
Update: After reading almut's post above, I have to ask what is your expected output? Please read How do I post a question effectively?. Clearly two monks read your post and drew opposite conclusions as to your intention.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem cycling through top level of nested hashes
by tomdbs98 (Beadle) on Jun 10, 2010 at 17:21 UTC |