perl-Data-Printer-0.40-alt1.noarch.rpm


Advertisement

Description

perl-Data-Printer - colored pretty-print of Perl data structures and objects

Property Value
Distribution ALT Linux Sisyphus
Repository Classic noarch
Package name perl-Data-Printer
Package version 0.40
Package release alt1
Package architecture noarch
Package type rpm
Installed size 114.08 KB
Download size 114.08 KB
Official Mirror ftp.altlinux.org
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;

Alternatives

Package Version Architecture Repository
perl-Data-Printer - - -

Requires

Name Value
/usr/share/perl5 -
perl(B.pm) -
perl(B/Deparse.pm) -
perl(Clone/PP.pm) -
perl(Fcntl.pm) -
perl(File/HomeDir.pm) >= 0.910
perl(File/Spec.pm) -
perl(Hash/Util/FieldHash.pm) -
perl(Package/Stash.pm) >= 0.300
perl(Scalar/Util.pm) -
perl(Sort/Naturally.pm) -
perl(Term/ANSIColor.pm) >= 3.0
perl(if.pm) -
perl(mro.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(DDP.pm) = 0.400
perl(Data/Printer.pm) = 0.400
perl(Data/Printer/Filter.pm) -
perl(Data/Printer/Filter/DB.pm) -
perl(Data/Printer/Filter/DateTime.pm) -
perl(Data/Printer/Filter/Digest.pm) -
perl-Data-Printer = 0.40-alt1

Download

Type URL
Binary Package perl-Data-Printer-0.40-alt1.noarch.rpm
Source Package perl-Data-Printer-0.40-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus noarch classic
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus noarch classic
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Data-Printer rpm package:
    # sudo apt-get install perl-Data-Printer

Files

Path
/usr/share/doc/perl-Data-Printer-0.40/Changes
/usr/share/doc/perl-Data-Printer-0.40/README.md
/usr/share/doc/perl-Data-Printer-0.40/examples/try_me.pl
/usr/share/perl5/DDP.pm
/usr/share/perl5/Data/Printer.pm
/usr/share/perl5/Data/Printer/Filter.pm
/usr/share/perl5/Data/Printer/Filter/DB.pm
/usr/share/perl5/Data/Printer/Filter/DateTime.pm
/usr/share/perl5/Data/Printer/Filter/Digest.pm

Changelog

2017-08-02 - Igor Vlasenko <viy@altlinux.ru> 0.40-alt1
- automated CPAN update
2017-05-09 - Igor Vlasenko <viy@altlinux.ru> 0.39-alt1
- automated CPAN update
2016-02-10 - Igor Vlasenko <viy@altlinux.ru> 0.38-alt1
- automated CPAN update
2015-10-16 - Igor Vlasenko <viy@altlinux.ru> 0.36-alt1
- automated CPAN update
2013-12-04 - Igor Vlasenko <viy@altlinux.ru> 0.35-alt2
- uploaded to Sisyphus as Scalar-Does dependency
2013-09-30 - Igor Vlasenko <viy@altlinux.ru> 0.35-alt1
- initial import by package builder

See Also

Package Description
perl-Data-Random-0.13-alt1.noarch.rpm Perl module to generate random data
perl-Data-Rmap-0.65-alt1_6.noarch.rpm Recursive map, apply a block to a data structure
perl-Data-Section-0.200007-alt1.noarch.rpm Perl module to read multiple hunks of data out of DATA section
perl-Data-Section-Simple-0.07-alt1.noarch.rpm Data::Section::Simple - Read data from __DATA__
perl-Data-Serializer-0.60-alt1.noarch.rpm Data::Serializer - Modules that serialize data structures
perl-Data-Show-0.002004-alt1.noarch.rpm Dump data structures with name and point-of-origin
perl-Data-TreeDumper-0.40-alt2.noarch.rpm dumps any data structure
perl-Data-TreeDumper-Renderer-GTK-0.02-alt2.noarch.rpm Rendering plug-in for Data::TreeDumper
perl-Data-Types-0.13-alt1.noarch.rpm Data-Types - validating and converting data types functions for Perl5
perl-Data-Uniqid-0.12-alt2.noarch.rpm Perl extension for simple genrating of unique id's
perl-Data-Validate-0.09-alt1.noarch.rpm Common data validation methods
perl-Data-Validate-Domain-0.14-alt1.noarch.rpm Domain validation methods Perl module
perl-Data-Validate-IP-0.27-alt1.noarch.rpm Perl IP address validation routines
perl-Data-Validate-URI-0.07-alt1.noarch.rpm Common url validation methods
perl-Data-Validator-1.07-alt1.noarch.rpm Rule based validator on type constraint system
Advertisement
Advertisement