perl -wle'use Data::Dumper; my $hashref; $hashref->{foo} = 23; print Dumper $hashref;' $VAR1 = { 'foo' => 23 };