G
Gerhard M
Hi,
currently i'm using
%what_i_want = map {$_=>$opts->{$_}} grep {/KEY/} keys %$opts;
or
%what_i_want = map {/KEY/? ($_=>$opts->{$_}) : ()} keys %$opts;
to extract some keys with it's values out of one hash.
Is there an easier/nicer way to do this?
Regards
Gerhard
currently i'm using
%what_i_want = map {$_=>$opts->{$_}} grep {/KEY/} keys %$opts;
or
%what_i_want = map {/KEY/? ($_=>$opts->{$_}) : ()} keys %$opts;
to extract some keys with it's values out of one hash.
Is there an easier/nicer way to do this?
Regards
Gerhard