Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Assignment of hash to hash doesn't work?by hdb (Monsignor) |
on May 13, 2014 at 13:30 UTC ( [id://1085898]=note: print w/replies, xml ) | Need Help?? |
In addition to what the fellow brothers said above, $recordset_TA_SITE[0]{'Age'} only works because Perl is secretly interpreting it as $recordset_TA_SITE[0]->{'Age'}. This happens only for nested structures (more precisely: from the second level onwards) and therefore $site{'Age'} is not automatically interpreted as $site->{'Age'}.
In Section
Seekers of Perl Wisdom
|
|