Codebase list libdata-peek-perl / c06a42d
Imported Upstream version 0.44 Axel Beckert 9 years ago
7 changed file(s) with 73 addition(s) and 58 deletion(s). Raw diff Collapse all Expand all
0 0.44 - 2015-03-25, H.Merijn Brand <h.m.brand@xs4all.nl>
1 * DDisplay in void context consistency
2
3 0.43 - 2015-02-11, H.Merijn Brand <h.m.brand@xs4all.nl>
4 * Move repo to github
5 * Remove perl recommendation from META as it breaks cpan clients
6
7 0.42 - 2015-01-02, H.Merijn Brand <h.m.brand@xs4all.nl>
8 * Prevent caching of .perltidyrc (RT#99514)
9 * Upped copyright to 2015
10
011 0.41 - 2014-09-27, H.Merijn Brand <h.m.brand@xs4all.nl>
112 * Add alternative test results for 5.21.5 and up (PADMY)
213
00 {
11 "abstract" : "Modified and extended debugging facilities",
22 "meta-spec" : {
3 "version" : "2",
4 "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec"
3 "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
4 "version" : "2"
55 },
6 "release_status" : "stable",
7 "name" : "Data-Peek",
8 "generated_by" : "Author",
69 "provides" : {
710 "Data::Peek" : {
8 "file" : "Peek.pm",
9 "version" : "0.41"
11 "version" : "0.44",
12 "file" : "Peek.pm"
1013 }
1114 },
12 "dynamic_config" : 1,
13 "generated_by" : "Author",
14 "name" : "Data-Peek",
1515 "prereqs" : {
16 "runtime" : {
17 "recommends" : {
18 "Data::Dumper" : "2.154",
19 "Perl::Tidy" : "0"
20 },
21 "requires" : {
22 "perl" : "5.008",
23 "Data::Dumper" : "0",
24 "DynaLoader" : "0"
25 }
26 },
1627 "build" : {
1728 "requires" : {
1829 "perl" : "5.008"
19 }
20 },
21 "runtime" : {
22 "recommends" : {
23 "Data::Dumper" : "2.154",
24 "Perl::Tidy" : "0",
25 "perl" : "5.020001"
26 },
27 "requires" : {
28 "Data::Dumper" : "0",
29 "perl" : "5.008",
30 "DynaLoader" : "0"
31 }
32 },
33 "test" : {
34 "recommends" : {
35 "Test::More" : "1.001006"
36 },
37 "requires" : {
38 "Test::More" : "0.88",
39 "Test::NoWarnings" : "0"
4030 }
4131 },
4232 "configure" : {
4333 "requires" : {
4434 "ExtUtils::MakeMaker" : "0"
4535 }
36 },
37 "test" : {
38 "requires" : {
39 "Test::NoWarnings" : "0",
40 "Test::More" : "0.88"
41 },
42 "recommends" : {
43 "Test::More" : "1.001014"
44 }
4645 }
4746 },
48 "version" : "0.41",
47 "version" : "0.44",
48 "resources" : {
49 "license" : [
50 "http://dev.perl.org/licenses/"
51 ],
52 "repository" : {
53 "url" : "https://github.com/Tux/Data-Peek",
54 "type" : "git",
55 "web" : "https://github.com/Tux/Data-Peek"
56 },
57 "x_IRC" : "irc://irc.perl.org/#csv"
58 },
4959 "author" : [
5060 "H.Merijn Brand <h.m.brand@xs4all.nl>"
5161 ],
52 "release_status" : "stable",
53 "resources" : {
54 "repository" : {
55 "web" : "http://repo.or.cz/w/Data-Peek.git",
56 "url" : "http://repo.or.cz/r/Data-Peek.git",
57 "type" : "git"
58 },
59 "license" : [
60 "http://dev.perl.org/licenses/"
61 ],
62 "x_IRC" : "irc://irc.perl.org/#csv"
63 },
6462 "license" : [
6563 "perl_5"
66 ]
64 ],
65 "dynamic_config" : 1
6766 }
66 configure_requires:
77 ExtUtils::MakeMaker: 0
88 dynamic_config: 1
9 generated_by: Author, CPAN::Meta::Converter version 2.142060
9 generated_by: Author, CPAN::Meta::Converter version 2.150001
1010 license: perl
1111 meta-spec:
1212 url: http://module-build.sourceforge.net/META-spec-v1.4.html
1515 provides:
1616 Data::Peek:
1717 file: Peek.pm
18 version: '0.41'
18 version: '0.44'
1919 recommends:
2020 Data::Dumper: '2.154'
2121 Perl::Tidy: 0
22 Test::More: '1.001006'
23 perl: '5.020001'
22 Test::More: '1.001014'
2423 requires:
2524 Data::Dumper: 0
2625 DynaLoader: 0
3029 resources:
3130 IRC: irc://irc.perl.org/#csv
3231 license: http://dev.perl.org/licenses/
33 repository: http://repo.or.cz/r/Data-Peek.git
34 version: '0.41'
32 repository: https://github.com/Tux/Data-Peek
33 version: '0.44'
00 #!/usr/bin/perl
11
2 # Copyright PROCURA B.V. (c) 2008-2014 H.Merijn Brand
2 # Copyright PROCURA B.V. (c) 2008-2015 H.Merijn Brand
33
44 require 5.008; # <- also see postamble at the bottom for META.yml
55 use strict;
55 use DynaLoader ();
66
77 use vars qw( $VERSION @ISA @EXPORT @EXPORT_OK );
8 $VERSION = "0.41";
8 $VERSION = "0.44";
99 @ISA = qw( DynaLoader Exporter );
1010 @EXPORT = qw( DDumper DTidy DDsort DPeek DDisplay DDump DHexDump
1111 DDual DGrow );
123123 "--no-check-syntax",
124124 "--no-standard-output",
125125 "--no-warning-output",
126 # RT#99514 - Perl::Tidy memoizes .perltidyrc incorrectly
127 "--no-memoize",
126128 ]);
127129 $s = $t;
128130
392394 print DDisplay "abc\x{0a}de\x{20ac}fg";
393395
394396 "abc\nde\x{20ac}fg"
397
398 In void context, C<DDisplay ()> uses C<warn> to display the result.
395399
396400 =head2 DHexDump
397401
684688
685689 =head1 COPYRIGHT AND LICENSE
686690
687 Copyright (C) 2008-2014 H.Merijn Brand
691 Copyright (C) 2008-2015 H.Merijn Brand
688692
689693 This library is free software; you can redistribute it and/or modify
690694 it under the same terms as Perl itself.
0 /* Copyright (c) 2008-2014 H.Merijn Brand. All rights reserved.
0 /* Copyright (c) 2008-2015 H.Merijn Brand. All rights reserved.
11 * This program is free software; you can redistribute it and/or
22 * modify it under the same terms as Perl itself.
33 */
7878 DDisplay (...)
7979 PROTOTYPE: ;$
8080 PPCODE:
81 SV *sv = items ? ST (0) : DEFSV;
82 SV *dsp = newSVpv ("", 0);
81 I32 gimme = GIMME_V;
82 SV *sv = items ? ST (0) : DEFSV;
83 SV *dsp = newSVpv ("", 0);
8384 if (SvPOK (sv) || SvPOKp (sv))
8485 pv_pretty (dsp, SvPVX (sv), SvCUR (sv), 0,
8586 NULL, NULL,
8687 (PERL_PV_PRETTY_DUMP | PERL_PV_ESCAPE_UNI_DETECT));
8788 ST (0) = dsp;
89 if (gimme == G_VOID) warn ("%s\n", SvPVX (ST (0)));
8890 XSRETURN (1);
8991 /* XS DDisplay */
9092
3838 $ make install
3939
4040 Recent changes can be (re)viewed in the public GIT repository at
41 http://repo.or.cz/w/Data-Peek.git
41 https://github.com/Tux/Data-Peek
4242
4343 Feel free to clone your own copy:
4444
45 $ git clone http://repo.or.cz/r/Data-Peek.git Data-Peek
45 $ git clone https://github.com/Tux/Data-Peek Data-Peek
4646
4747 or get it as a tgz:
4848
4949 $ wget --output-document=Data-Peek-git.tgz \
50 'http://repo.or.cz/w/Data-Peek.git?a=snapshot;sf=tgz'
50 https://github.com/Tux/Data-Peek/archive/master.tar.gz
5151
5252 =head1 AUTHOR
5353
5555
5656 =head1 COPYRIGHT AND LICENSE
5757
58 Copyright (c) 2008-2014 H.Merijn Brand. All rights reserved.
58 Copyright (c) 2008-2015 H.Merijn Brand. All rights reserved.
5959
6060 This program is free software; you can redistribute it and/or modify
6161 it under the same terms as Perl itself.