NAME

Data::Dumper::Concise::Aligned - even less indentation plus string prefix

SYNOPSIS

use Data::Dumper::Concise::Aligned;
warn DumperA S => \@input, D => \@output;

DESCRIPTION

Like Data::Dumper::Concise except with even less indentation, and string prefixing of the wrapped-as-necessary output. Used in particular to look at data that needs to be shown in as compact a manner as possible for easy vertical comparison (hypothetically, musical pitch numbers), for example:

S [[2,2,1,2,2,2,1],[1,2,2,2,1,2,2]]
D [[2,1,2,2,2,2,1],[2,2,1,2,2,1,2]]

This could possibly be done via DumperF of Data::Dumper::Concise, but that's more typing, and not exactly the string prefix handling I wanted.

Not Safe for Emacs Users

In vi type editors, an ab editor configuration along the lines of the following can expand out to include the desired Dumper routine:

ab PUDD use Data::Dumper; warn Dumper
ab PUCC use Data::Dumper::Concise::Aligned; warn DumperA

FUNCTIONS

DumperA

Dumper, aligned, concise. Should be called with key value pairs, where the key is presumably some short label used to prefix the concisely dumped subsequent reference to some data structure. This function is exported by default.

DumperObjectA

A mostly internal function used by DumperA. Returns the Data::Dumper object with formatting options as used by this module set. Not exported by default since version 0.25.

SEE ALSO

Data::Dump, Data::Dumper::Concise, Data::Dumper, or so forth and so on from CPAN, one of which will hopefully meet your needs. If not, well, you can always write your own. Another good debugging tip is the %vd printf format, for seeing what the data really contains, but then you'll probably want to also know about ascii(7):

printf "%vd\n", "hi\r\tthere";

Text::Wrap is used to wrap text that strays beyond the usual punchcard inherited limits.

ascii(7), vi(1)

AUTHOR

thrig - Jeremy Mates (cpan:JMATES) <jmates at cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2013,2015 by Jeremy Mates

This module is free software; you can redistribute it and/or modify it under the Artistic License (2.0).