Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
prettyfy hashesby morgon (Priest) |
on Apr 03, 2016 at 01:38 UTC ( [id://1159396]=perlquestion: print w/replies, xml ) | Need Help?? |
morgon has asked for the wisdom of the Perl Monks concerning the following question:
Hi I want to transform a hash definition like this: to something like this: i.e. make the fat commas line up in perl source code. By "transform" I mean a perl-script that takes the key-value lines from stdin and prints the prettyfied versions to stdout so I can call it from vim. As this seems to be a quite natural requirement I assume some module does things like that already (lazyness is a virtue right). So could someone please point me to such a modules (I am NOT looking for someone to code this for me).
Back to
Seekers of Perl Wisdom
|
|