raulgh5 has asked for the wisdom of the Perl Monks concerning the following question:
and in some subroutines, I see this:my %_abc;
As the first variable is a hash, I suppose the $_abc are values in hash, but what is the use of -> here? Can someone explain to me the meaning of "->" here? My understanding is the elements of a hash are key/value pairs, thus, why we have 3 "->" here?$_abc{"info"}->{$env}->{"Generic"}->{"Cat A"}=10; $_abc{"warning"}->{$env}->{"Generic"}->{"Cat B"}=20; ......
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: doubts on perl Hash
by NetWallah (Canon) on Oct 12, 2015 at 05:37 UTC | |
|
Re: doubts on perl Hash
by kcott (Archbishop) on Oct 12, 2015 at 05:24 UTC | |
|
Re: doubts on perl Hash
by AppleFritter (Vicar) on Oct 12, 2015 at 09:21 UTC | |
|
Re: doubts on perl Hash
by Anonymous Monk on Jul 07, 2017 at 09:05 UTC | |
by Athanasius (Archbishop) on Jul 08, 2017 at 05:55 UTC |