Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Taking a subset of a hash

by james2vegas (Chaplain)
on Oct 30, 2010 at 13:18 UTC ( #868468=note: print w/replies, xml ) Need Help??


in reply to [Answered!] Taking a subset of a hash

@small_hash{@interesting_keys} = @$config{@interesting_keys}; delete @small_hash{ grep { ! $config->{$_} } keys %$config };
should work

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://868468]
help
Chatterbox?
Corion discovers that ffmpeg is supposed to have audio fingerprinting built in already. Maybe the ffmpeg at home has that too. Then I could automate removing audio jingles from that one radio show I listen to :)

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2018-05-24 13:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?