in reply to Elements added to hash in for loop
my ($current_id) = @_;
otherwise you are using the length of @_ as key and autovivification creates new entries.
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Elements added to hash in for loop
by AnomalousMonk (Archbishop) on Dec 13, 2013 at 10:59 UTC | |
by LanX (Saint) on Dec 13, 2013 at 15:15 UTC | |
by AnomalousMonk (Archbishop) on Dec 13, 2013 at 20:39 UTC | |
by nathaniels (Acolyte) on Dec 14, 2013 at 23:56 UTC | |
by AnomalousMonk (Archbishop) on Dec 15, 2013 at 00:27 UTC | |
by nathaniels (Acolyte) on Dec 15, 2013 at 16:49 UTC | |
|
Re^2: Elements added to hash in for loop
by nathaniels (Acolyte) on Dec 13, 2013 at 04:27 UTC |