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:";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045282]
help
Chatterbox?
LanX ... me is scared of people voting for Trumps
[erix]: until good old Putin lobs a bomb on Berlin :)
[Your Mother]: “I’m afraid of Americans…”
[Your Mother]: “No one needs anyone / They don’t even just pretend…”
[erix]: they've stuck nuclear missiles in Kaliningrad - they can just reach Berlin :)
[LanX]: naaah! Putin wouldn't nuke all the Russians in Berlin
[Your Mother]: Putin is a bad guy but he’s not that kind of bad guy. (Who would launch.)
[erix]: fortunately, Putin seems to be ill -- or at least, they're building a hospital for him and his cronies in Moscow
[erix]: nobody knows what kind it takes :)
[erix]: I say his seems a face that launches a thousand missiles :)

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-01-20 00:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (173 votes). Check out past polls.