http://qs321.pair.com?node_id=297331

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:
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 }
The problem is with the output from the prints, I get to console:
$VAR1 = { 'volumes' => 'none', 'maxVolId' => 'none', 'isInternal' => 'true' }; volumes: 0 1, none value: 0 1 value: 0 1 2 3
A you can see, under $volInfo->{volumes} I get different values in the dump and the regular print after it. How can that be?