1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #!/usr/bin/perl -w use strict; # add your ~/lib dir to @INC use lib '/picb/home5/augix/Programming/Perl/Modules/lib/perl5/site_perl/5.8.5/' ; use Hash::AsObject; my $hash = Hash::AsObject->new; $hash ->{foo} = 42; print $hash ->foo, "\n" ; $hash ->bar( 137 ); print $hash ->bar, "\n" ; $hash ->{baz}{quux} = 149; print $hash ->baz->quux, "\n" ; |
Hide Comments