in reply to Re: Returning a hash?
in thread Returning a hash?
For precisely this reason, it is suggested in the book "Perl Best Practices" by thedamian (see p228-229) that when you need to use "prefix dereferencing" such as this, that you used braces around the reference:
is more noticeable, and thus readable than:%{$hTableData}
It makes the dereferencing easier to see in this case, and getting into this habit can make your dereferencing far easier to understand as you meet more complexes cases.%$hTableData
I must also agree that perldsc is a most useful piece of reading. Welcome to the monastery!
|
|---|