Steven Haryanto

NAME

Carp::Always::Dump - Like Carp::Always, but dumps the content of function arguments

VERSION

version 0.06

SYNOPSIS

 % perl -MCarp::Always::Dump script.pl

DESCRIPTION

FUNCTIONS

None are exported by default, but they are exportable.

VARIABLES

$Color => BOOL (default: from COLOR environment, or 1)

If set to true, will use terminal colors to help visually distinguish parameters from one another.

$DumpObj => BOOL (default: 0)

If set to 1, will dump objects (blessed references) instead of showing them as 'Foo::Bar=HASH(0x19c8ff8)'.

$MaxArgLen => INT (default: 0)

Like $MaxArgLen in Carp, to limit the number of characters of dump to show.

$Terse => BOOL (default: 1)

If set to false, will use Data::Dump instead of the terser Data::Dump::OneLine to produce the dumps.

IMPORTS

For each variable mentioned in "VARIABLES", you can also set it via import argument:

 use Carp::Always::Dump Color=>0, DumpObj=>1;

Via command-line:

 % perl -MCarp::Always::Dump=Color,1 ...

ENVIRONMENT

COLOR => BOOL

Used to set the default of $Color.

INTERACTIVE => BOOL

SEE ALSO

Carp::Always (and its variants such as: Carp::Always::Color, Carp::Always::SHS)

Devel::SimpleTrace, a simpler stack trace module, without showing function arguments.

Monkey::Patch::Action

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Carp-Always-Dump.

SOURCE

Source repository is at https://github.com/sharyanto/perl-Carp-Always-Dump.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Carp-Always-Dump

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.




Hosting generously
sponsored by Bytemark