in reply to prettyfy hashes

You could use Data::Dumper::Perltidy which uses a default perltidy config, but can be configured to use your own .perltidy.rc:

perl -MData::Dumper::Perltidy -E' $href = { foo => "bar", longer => "baz", longest => "qux" }; say Dumper $href; '
Output:
$VAR1 = { 'foo' => 'bar', 'longer' => 'baz', 'longest' => 'qux' };

Hope this helps!


The way forward always starts with a minimal test.