Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 musing on the Monastery: (9)
As of 2014-08-20 21:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (124 votes), past polls