in reply to Brief Hash Tutorial
Similarly an array ref would be:my $by = $parse_tree->{by};
etc. Also in the case of nested hashes, you can repeat the process:$a->[0];
However, after the initial arrow, further arrows are unnecessary, so:my $domain = $parse_tree->{by}->{domain};
will work just as well.my $domain = $parse_tree->{by}{domain}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Brief Hash Tutorial
by cosmicperl (Chaplain) on Aug 31, 2008 at 02:36 UTC | |
by dreadpiratepeter (Priest) on Aug 31, 2008 at 13:30 UTC | |
by gw1500se (Beadle) on Aug 31, 2008 at 02:40 UTC | |
by JadeNB (Chaplain) on Sep 01, 2008 at 01:19 UTC | |
|
Re^2: Brief Hash Tutorial
by gw1500se (Beadle) on Aug 31, 2008 at 02:37 UTC | |
by wfsp (Abbot) on Aug 31, 2008 at 10:02 UTC |