Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: grep for hash?

by ikegami (Patriarch)
on Jul 07, 2009 at 15:43 UTC ( #777911=note: print w/replies, xml ) Need Help??


in reply to Re^2: grep for hash?
in thread grep for hash?

Written like it's said, "Copy each selected key":

$dest->{$_} = $orig->{$_} for grep /oo/, keys %$orig;

There's no need to twist one's mind to process the parent's expression.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://777911]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2023-03-27 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (65 votes). Check out past polls.

    Notices?