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:
Output:perl -MData::Dumper::Perltidy -E' $href = { foo => "bar", longer => "baz", longest => "qux" }; say Dumper $href; '
$VAR1 = { 'foo' => 'bar', 'longer' => 'baz', 'longest' => 'qux' };
Hope this helps!
|
|---|