hotshot has asked for the wisdom of the Perl Monks concerning the following question:
Hello guys!
I have a weired problem I have the folowing function:
I have a weired problem I have the folowing function:
The problem is with the output from the prints, I get to console:sub saveVolumes { my $volInfo = shift; # supposed to be hash reference (hash of ha +shes) print Dumper($volInfo); print "volumes: $volInfo->{volumes}{0}, $volInfo->{volumes}\n"; # more stuff here }
A you can see, under $volInfo->{volumes} I get different values in the dump and the regular print after it. How can that be?$VAR1 = { 'volumes' => 'none', 'maxVolId' => 'none', 'isInternal' => 'true' }; volumes: 0 1, none value: 0 1 value: 0 1 2 3
|
---|
Replies are listed 'Best First'. | |
---|---|
•Re: Reference problem?
by merlyn (Sage) on Oct 07, 2003 at 16:52 UTC | |
by hotshot (Prior) on Oct 08, 2003 at 09:51 UTC | |
Re: Reference problem?
by thens (Scribe) on Oct 07, 2003 at 17:29 UTC |
Back to
Seekers of Perl Wisdom