monk2b has asked for the wisdom of the Perl Monks concerning the following question:
my %BldEnv = ( "TTT2" => { VersionOne => "one", VersionTwo => "two", VersionThree => "three", VersionFour => "four", } ); # commented line works #print "$BldEnv{TTT2}{VersionOne}\n"; # uncommented line doesn't work print "$BldEnv->{TTT2}->{VersionTwo}\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using OO hash
by moritz (Cardinal) on Nov 27, 2007 at 21:11 UTC | |
by monk2b (Pilgrim) on Nov 27, 2007 at 21:27 UTC | |
|
Re: Using OO hash
by meraxes (Friar) on Nov 27, 2007 at 21:53 UTC |