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)
In reply to Re: Elements added to hash in for loop
by LanX
in thread Elements added to hash in for loop
by nathaniels
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |