in reply to dumping a hash

You almost had it. Data::Dumper wants a reference to the hash, not the hash itself.
%hash = (this => "one", that => two); print Dumper (\%hash);

Replies are listed 'Best First'.
Re^2: dumping a hash
by imp (Priest) on Aug 08, 2006 at 23:36 UTC
    Also note that it should be
    %hash = (this => "one", that => two);
    Instead of
    %hash = {this => "one", that => two};
    You use {} to initialize a hash reference, and () to initialize an actual hash.