NAME
Mail::Colander::Server::Util
SYNOPSIS
use Mail::Colander::Server::Util qw< xxd_message >;
my $string = xxd_message($data, max_lines => 5, prefix => '| ');
DESCRIPTION
Utility function(s) for Mail::Colander.
INTERFACE
Functions
xxd_message
my @lines = xxd_message($data, %options); # OR
my $string = xxd_message($data, %options);
Use Data::HexDump::XXD to produce an output like xxd, with some options.
Can return a list of lines or a string, depending on the context.
Options in %options
:
max_lines
: remove lines and only keep the beginning and the end.preamble
: pre-pend a string/list of lines (if array reference) to the output.prefix
: indent each xxd-like line with a fixed string.
ANYTHING ELSE (INCLUDING AUTHOR, COPYRIGHT AND LICENSE)
See documentation for Mail::Colander.