Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by Rahul6990 (Beadle)
on Jul 19, 2013 at 07:36 UTC ( #1045282=note: print w/ replies, xml ) Need Help??


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

Hi Good Morning , Perhaps this is what you are looking for:

%chapter = ( 'book'=> { 'name' => 'abc', 'author' => 'monk', 'isbn' => '123-890', 'issn' => '@issn', }, 'title' => 'xyz', 'page' => '90', ); $value = $chapter{'book'}{'name'}; print ":$value:";


Comment on Re: 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://1045282]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (15)
As of 2015-07-07 20:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls