logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Specio::PartialDump - A partially rear-ended copy of Devel::PartialDump without prereqs

Author

       Dave Rolsky <autarch@urth.org>

Description

       This is a copy of Devel::PartialDump with all the OO bits and prereqs removed. You may want to use this
       module in your own code to generate nicely formatted messages when a type constraint fails.

       This module optionally exports one sub, "partial_dump". This sub accepts any number of arguments. If
       given more than one, it will assume that it's either been given a list of key/value pairs (to build a
       hash) or a list of values (to build an array) and dump them appropriately. Objects and references are
       stringified in a sane way.

Name

       Specio::PartialDump - A partially rear-ended copy of Devel::PartialDump without prereqs

Source

       The source code repository for Specio can be found at <https://github.com/houseabsolute/Specio>.

Support

       Bugs may be submitted at <https://github.com/houseabsolute/Specio/issues>.

Synopsis

         use Specio::PartialDump qw( partial_dump );

         partial_dump( { foo => 42 } );
         partial_dump(qw( a b c d e f g ));
         partial_dump( foo => 42, bar => [ 1, 2, 3 ], );

Version

       version 0.50

See Also