in reply to Perl hashes revisit
Replace this withprint $test->dest->flags
orprint $test->{dest}->{flags}
In Perl, the syntax you used is only for method calls, not for hash items. I know that in a lot of other languages the difference between the two isn't so large...print $test->{dest}{flags}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl hashes revisit
by perlpreben (Beadle) on Feb 14, 2009 at 20:03 UTC | |
by bart (Canon) on Feb 15, 2009 at 08:26 UTC |