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

in using this method you might find this helpfull
local $Data::Dumper::Indent=0;

Replies are listed 'Best First'.
Re^3: DBI fetchall_hashref convert to scalar
by stevieb (Canon) on Feb 03, 2017 at 00:21 UTC

    Hey huck,

    If you're recommending that switch, could you please show us an example of it in use (ie. what happens when it's used), and let us know the purpose of using that var?

        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};