in reply to Referencing a HoA
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}.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Referencing a HoA
by edoc (Chaplain) on Jun 02, 2003 at 02:44 UTC | |
|
Re: Re: Referencing a HoA
by Anonymous Monk on Jun 02, 2003 at 02:52 UTC |