Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: How can I populate attributes of a hash into another ?

by hdb (Prior)
on Jul 19, 2013 at 08:40 UTC ( #1045296=note: print w/ replies, xml ) Need Help??


in reply to Re: How can I populate attributes of a hash into another ?
in thread How can I populate attributes of a hash into another ?

Calls to keys and values are guaranteed to return data in a consistent way, so you could simply write:

@chapter{ keys %book } = values %book;


Comment on Re^2: How can I populate attributes of a hash into another ?
Download Code

Log In?
Username:
Password:

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

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

    In my home, the TV remote control is ...









    Results (130 votes), past polls