in reply to get value of hash hold by array and array hold by another hash
By the way, if you want to initialize data structures, you can do it directly, you don't need to push values on. But maybe you were just doing that since you weren't getting output, and worried it might be something about the initialization. You clearly have a handle on anonymous arrays and hashes.
my %h = ( CUST => [ { NAME => 'Mr. y', ADD => 'Hell' }, { NAME => 'Mr. z', ADD => 'Dell' }, ], ADMIN => [ { NAME > 'Mr. x', ADD => 'Hell' }, ], );
I use trailing commas and leave the closing brace on the next line, to make it easier to add more entries.
update ... oops, left a typo '/' in the wrong place overnightAs Occam said: Entia non sunt multiplicanda praeter necessitatem.
|
|---|