Yes, I could iterate over the keys using ref or such, but I would rather want to say: %out = %h;
Immediate reaction: That's an awful lot of magical code to substitute for: %out = map{ ( $_ => ref( $h{$_} ? $h{$_}->() : $h{$_} ) } keys %h;
Maybe I'm missing something?
In reply to Re: tied hash for data munging
by BrowserUk
in thread tied hash for data munging
by shmem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |