Subject: | Utility function, pretty_file |
The procedure to pretty-print a file is too long for a tweet:
perl -MXML::LibXML -MXML::LibXML::PrettyPrint -e'print XML::LibXML::PrettyPrint->new()->pretty_print(XML::LibXML->new->parse_file(...))'
A utility method to construct that object and pretty it would be awesome. So I can tweet it.
More utility than being able to tweet it is of course the reduced complexity of parenthesis balancing and quote matching and putting arrows in the right place.