...I'd probably write:@$default{ keys %$config } = values %$config;
...this is also less likely to get updated to be "bad".my @ids = keys %$config; @$default{ @ids } = @$config{ @ids };
In reply to Re^2: Hash assignment misunderstanding
by nevyn
in thread Hash assignment misunderstanding
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |