use Data::Dumper qw(Dumper); # impor the Dumper() subroutine my %hash = ( a => 1, b => 2, c => 3 ); print Dumper(\%hash); # note the \ backslash; Dumper() takes references as arguments