in reply to Re^2: Hash assignment "odd" ness
in thread Hash assignment "odd" ness

Dumper takes a list of scalars for input. If you want to dump a hash, you need to pass a reference to the hash.
print Dumper(%hash); # Dumps the result of evaluating the hash. Meh. print Dumper(\%hash); # Dumps the ref and the referenced hash. Good.

On the other hand, $po is a scalar. No need to pass a reference to it.

print Dumper(\$po); # Why?? print Dumper($po); # Good.

Replies are listed 'Best First'.
Re^4: Hash assignment "odd" ness
by phigment (Initiate) on Jun 30, 2010 at 07:23 UTC
    print Dumper(\$po);  # Why??

    I wanted to be doubly sure!

    Truly, it was an artifact from a "print Dumper(\%hash);" test.

    It has been corrected.