in reply to Re^4: DBI fetchall_hashref convert to scalar
in thread DBI fetchall_hashref convert to scalar

Right, but it's just nice when commenting that one provides an example within their reply, so it's easy to see, and one doesn't need to travel off the page unless they need to further their understanding of the documentation. Also, it doesn't 'quite' print it out in as compact format possible to be considered Perl... there's still some whitespace/characters that can be eliminated so the Golfers can remain happy ;)

perl -wMstrict -MData::Dumper -E '$Data::Dumper::Indent=0; print Dumpe +r {a=>1, b=>2};' $VAR1 = {'a' => 1,'b' => 2};