Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 surveying the Monastery: (4)
As of 2014-10-02 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (49 votes), past polls