ALT repositories
Last updated at Fri, 24 Jul 2020 14:09:54 +0000 | SRPMs: 24163
en ru
SRPMs in branches
hide window
Other repositories
hide window
CPAN: 0.40

Group :: Development/Perl
Source RPM: perl-Data-Printer
Current version: 1.000004-alt1
Built: about 2 months ago
Size: 120 KB
Repocop status: skip
Gear:   http://git.altlinux.org/srpms/p/perl-Data-Printer.git
Archive:   http://ftp.altlinux.org/pub/distributions/archive/sisyphus/index/src/p/perl-Data-Printer
Home page:   http://search.cpan.org/dist/Data-Printer/

License: perl
Summary: colored pretty-print of Perl data structures and objects
Description:

Want to see what's inside a variable in a complete, colored
and human-friendly way?

use Data::Printer; # or just "use DDP" for short

p @array; # no need to pass references

Code above might output something like this (with colors!):

[
[0] "a",
[1] "b",
[2] undef,
[3] "c",
]

You can also inspect objects:

my $obj = SomeClass->new;

p($obj);

Which might give you something like:

\ SomeClass {
Parents Moose::Object
Linear @ISA SomeClass, Moose::Object
public methods (3) : bar, foo, meta
private methods (0)
internals: {
_something => 42,
}
}

Data::Printer is fully customizable. If you want to change how things
are displayed, or even its standard behavior. Take a look at the
available customizations. Once you figure out
your own preferences, create a
configuration file for
yourself and Data::Printer will automatically use it!

That's about it! Feel free to stop reading now and start dumping
your data structures! For more information, including feature set,
how to create filters, and general tips, just keep reading :)

Oh, if you are just experimenting and/or don't want to use a
configuration file, you can set all options during initialization,
including coloring, identation and filters!

use Data::Printer {
color => {
'regex' => 'blue',
'hash' => 'yellow',
},
filters => {
'DateTime' => sub { $_[0]->ymd },
'SCALAR' => sub { "oh noes, I found a scalar! $_[0]" },
},
};

The first `{}' block is just syntax sugar, you can safely ommit it
if it makes things easier to read:

use DDP colored => 1;

use Data::Printer deparse => 1, sort_keys => 0;

Current maintainer: Igor Vlasenko

List of contributors: ACL: List of rpms provided by this srpm:
  • perl-Data-Printer
Recent changes (last three changelog entries):

2021-03-05 Igor Vlasenko 1.000004-alt1

    - automated CPAN update
        

2021-03-03 Igor Vlasenko 1.000003-alt1

    - automated CPAN update
        

2021-02-25 Igor Vlasenko 1.000001-alt1

    - automated CPAN update
        
 
The Geyser project is based on code from Prometheus2.0, which had been made available under the MIT License.