http://qs321.pair.com?node_id=1085887


in reply to Assignment of hash to hash doesn't work?

Are you using strict and warnings? I suspect that you may not be as you should be getting an error similar to below

Global symbol "%site" requires explicit package name at foo.pl line 10 +1. Execution of foo.pl aborted due to compilation errors.

Your array contains references to hashes so you need to dereference them to get at the contents.

$site->{'Age'}

Alternatively so you can use $site{'Age'}; you can do this.

my %site = %{$recordset_TA_SITE[0]};