my %newSource = %$source; # dereference it all at once foreach my $node(keys (%newSource)) { # note no %$ #... $newSource{$node}; # already dereferenced.
update I'm not recommending that you change the code, but showing a similar situation to explain the code. If you are thinking of changing the code, see the important caveat mentioned by Random_Walk.
In reply to Re: The Drivel is in the Details
by jZed
in thread The Drivel is in the Details
by dalgetty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |