1Specio::PartialDump(3)User Contributed Perl DocumentationSpecio::PartialDump(3)
2
3
4
6 Specio::PartialDump - A partially rear-ended copy of Devel::PartialDump
7 without prereqs
8
10 version 0.46
11
13 use Specio::PartialDump qw( partial_dump );
14
15 partial_dump( { foo => 42 } );
16 partial_dump(qw( a b c d e f g ));
17 partial_dump( foo => 42, bar => [ 1, 2, 3 ], );
18
20 This is a copy of Devel::PartialDump with all the OO bits and prereqs
21 removed. You may want to use this module in your own code to generate
22 nicely formatted messages when a type constraint fails.
23
24 This module optionally exports one sub, "partial_dump". This sub
25 accepts any number of arguments. If given more than one, it will assume
26 that it's either been given a list of key/value pairs (to build a hash)
27 or a list of values (to build an array) and dump them appropriately.
28 Objects and references are stringified in a sane way.
29
31 Bugs may be submitted at
32 <https://github.com/houseabsolute/Specio/issues>.
33
34 I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".
35
37 The source code repository for Specio can be found at
38 <https://github.com/houseabsolute/Specio>.
39
41 Dave Rolsky <autarch@urth.org>
42
44 This software is copyright (c) 2008 by יובל קוג'מן (Yuval Kogman).
45
46 This is free software; you can redistribute it and/or modify it under
47 the same terms as the Perl 5 programming language system itself.
48
49
50
51perl v5.30.1 2020-03-14 Specio::PartialDump(3)