NAME
    Carp::Patch::Config - Set some Carp variables

VERSION
    This document describes version 0.006 of Carp::Patch::Config (from Perl
    distribution Carp-Patch-Config), released on 2020-06-19.

SYNOPSIS
     % perl -MCarp::Patch::Config=-MaxArgNums,20,-Dump,1 -d:Confess ...

DESCRIPTION
    This is not so much a "patch" for Carp, but just a convenient way to set
    some Carp package variables from the command-line. Currently can set
    these variables: "MaxArgLen", "MaxArgNums".

PATCH CONTENTS
PATCH CONFIGURATION
    *   -Dump => str

        This is not an actual configuration for Carp, but a shortcut for:

         # when value is 0 or 'none'
         $Carp::RefArgFormatter = undef;
 
         # when value is 1 or 'Data::Dmp'
         $Carp::RefArgFormatter = sub {
             require Data::Dmp;
             Data::Dmp::dmp($_[0]);
         };
 
         # when value is 2 or 'Data::Dump'
         $Carp::RefArgFormatter = sub {
             require Data::Dump;
             Data::Dump::dump($_[0]);
         };
 
         # when value is 3 or 'Data::Dump::ObjectAsString'
         $Carp::RefArgFormatter = sub {
             require Data::Dump::ObjectAsString;
             Data::Dump::ObjectAsString::dump($_[0]);
         };

    *   -MaxArgLen => int

    *   -MaxArgNums => int

HOMEPAGE
    Please visit the project's homepage at
    <https://metacpan.org/release/Carp-Patch-Config>.

SOURCE
    Source repository is at
    <https://github.com/perlancar/perl-Carp-Patch-Config>.

BUGS
    Please report any bugs or feature requests on the bugtracker website
    <https://rt.cpan.org/Public/Dist/Display.html?Name=Carp-Patch-Config>

    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.

SEE ALSO
    Module::Patch

    Carp

    Devel::Confess

AUTHOR
    perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE
    This software is copyright (c) 2020, 2019, 2016 by perlancar@cpan.org.

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