in reply to Re: Hash assignment misunderstanding
in thread Hash assignment misunderstanding
...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 };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Hash assignment misunderstanding
by hardburn (Abbot) on Sep 06, 2006 at 16:35 UTC | |
|
Re^3: Hash assignment misunderstanding
by wfsp (Abbot) on Sep 06, 2006 at 16:43 UTC |