in reply to Re: OO Perl: Methods To Reference Hash
in thread OO Perl: Methods To Reference Hash
My hash is being created correctly and looks something like this:
When I attempt to dump it is after the object has been instantiated with the hash in it using a set() method.HASH DUMP: 2030000 => 2030000.xml HASH DUMP: 2030001 => 2030001.xml HASH DUMP: 2030002 => 2030002.xml
...the dump looks like this:my %hshAgg = $self->get_hshAgg(); dumpHash(%hshAgg);
What am I doing wrong here?HASH DUMP: HASH(0x223db34) =>
sub run { my $self = Myobj->new(@_); ... $self->set_hshAgg(%hshAgg); ... } # method within object sub myProblem { my %hshAgg = $self->get_hshAgg(); dumpHash(%hshAgg); }
-P0w3rK!d
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: OO Perl: Methods To Reference Hash
by halley (Prior) on Jun 03, 2003 at 21:03 UTC | |
by P0w3rK!d (Pilgrim) on Jun 03, 2003 at 21:34 UTC |
In Section
Seekers of Perl Wisdom