As for why $aref = $tables{$table_name} doesn't work, it's because $aref is just a scalar value, so you're just changing the value of the lexical $aref, not @fields.@$aref = $tables{$table_name};
/s
Update: See replies -- I forgot the curlies around $tables{$table_name}.
In reply to Re: Referencing a HoA
by educated_foo
in thread Referencing a HoA
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |