1Test::Smoke::Util::SeriUasleirseC(o3n)tributed Perl DocuTmeesntt:a:tSimoonke::Util::Serialise(3)
2
3
4
6 Test::Smoke::Util::Serialise - Serialise (stringify) values, a bit like
7 Data::Dumper.
8
10 use Test::Smoke::Util::Serialise 'serialise';
11
12 my $value = [ qw( one two three ) ];
13 printf "Looks like: '%s'\n", serialise($value);
14 # Looks like: '[one, two, three]'\n
15
17 Mostly looks like Data::Dumper::Dumper, with "$Indent = 0", "$Sortkeys
18 = 1" and "$Terse = 1".
19
20 serialise($to_serialise)
21 Make a string representation of the argument passed.
22
23 Arrays are represented with enclosing square brackets
24
25 Hashes are represented with enclosing curly braces, where all te Key-
26 Value-pairs have enclosing parenthesis with a "=>" (fat comma) in-
27 between.
28
29 {(one => two), (three => [four, five]), (six => {(seven => eight)}, (nine => \ten))}
30
31 Arguments
32
33 Positional:
34
35 1. $to_serialise
36
37 Responses
38
39 A string representation of the value passed.
40
42 (c) 2020, Abe Timmerman <abeltje@cpan.org> All rights reserved.
43
44 With contributions from Jarkko Hietaniemi, Merijn Brand, Campo
45 Weijerman, Alan Burlison, Allen Smith, Alain Barbet, Dominic Dunlop,
46 Rich Rauenzahn, David Cantrell.
47
48 This library is free software; you can redistribute it and/or modify it
49 under the same terms as Perl itself.
50
51 See:
52
53 • <http://www.perl.com/perl/misc/Artistic.html>
54
55 • <http://www.gnu.org/copyleft/gpl.html>
56
57 This program is distributed in the hope that it will be useful, but
58 WITHOUT ANY WARRANTY; without even the implied warranty of
59 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
60
61
62
63perl v5.32.1 2021-01-27 Test::Smoke::Util::Serialise(3)