thekestrel has asked for the wisdom of the Perl Monks concerning the following question:
For my current project I had a need for a bit of a involved data structure, i.e. a hash of hashes that contains arrays i.e.
thing1: item1: [banana] item2: [pineapple, kiwi, grapes] thing2: item1: [apple, pear]
an example of one of the lines that is giving this response is....
foreach my $clientcode ( @{%client_list{$session}}->{clientrate}} ) {
now I have the whole thing working nicely, however I am getting a message that ...
Using a hash as a reference is deprecated at ./test.pl line 258
At the moment I've just turned warnings off and left strict on, but it bugs me not to has the latest acess methodology. I'm using perl 5.8.4 atm. If someone could enlighten me as to the correct access method that would be great =).
Regards Paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: deprecated access method
by Happy-the-monk (Canon) on Oct 24, 2004 at 22:18 UTC | |
by thekestrel (Friar) on Oct 24, 2004 at 22:30 UTC | |
|
Re: deprecated access method
by Golo (Friar) on Oct 24, 2004 at 22:25 UTC |