instead. That way you are iterating over what were the items in the hash before you began iterating.foreach my $key (keys %hash) { my $val = $hash{$key}; ... }
Oh, and you should really format posts before putting 'em up. Use the "Preview" button; it's your friend. Updated: thanks!
In reply to Re: Merging 2 hashes
by etcshadow
in thread Merging 2 hashes - updated again
by rspence
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |