ALT repositories
Last updated at Fri, 24 Jul 2020 14:09:54 +0000 | SRPMs: 24173
en ru
SRPMs in branches
hide window
Group :: Development/Perl
Source RPM: perl-Data-Printer
Raw spec file

%define _unpackaged_files_terminate_build 1
%define module_name Data-Printer
# BEGIN SourceDeps(oneline):

BuildRequires: perl( perl(B/ perl(Capture/ perl( perl(Clone/ perl(DBIx/Class/ perl(DBIx/Class/ perl(ExtUtils/ perl( perl(File/ perl(File/HomeDir/ perl(File/ perl(File/ perl(MRO/ perl(Package/ perl(Scalar/ perl(Sort/ perl(Term/ perl(Test/ perl( perl( perl( perl( perl(
# END SourceDeps(oneline)

BuildRequires: rpm-build-perl perl-devel perl-podlators

Name: perl-%module_name
Version: 1.000004
Release: alt1
Summary: colored pretty-print of Perl data structures and objects
Group: Development/Perl
License: perl
Url: %CPAN %module_name

BuildArch: noarch
BuildRequires: perl(DBD/

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;


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;

%setup -q -n %{module_name}-%{version}



%doc Changes README* examples

* Fri Mar 05 2021 Igor Vlasenko <viy at> 1.000004-alt1
- automated CPAN update

* Wed Mar 03 2021 Igor Vlasenko <viy at> 1.000003-alt1
- automated CPAN update

* Thu Feb 25 2021 Igor Vlasenko <viy at> 1.000001-alt1
- automated CPAN update

* Wed Aug 02 2017 Igor Vlasenko <viy at> 0.40-alt1
- automated CPAN update

* Tue May 09 2017 Igor Vlasenko <viy at> 0.39-alt1
- automated CPAN update

* Wed Feb 10 2016 Igor Vlasenko <viy at> 0.38-alt1
- automated CPAN update

* Fri Oct 16 2015 Igor Vlasenko <viy at> 0.36-alt1
- automated CPAN update

* Wed Dec 04 2013 Igor Vlasenko <viy at> 0.35-alt2
- uploaded to Sisyphus as Scalar-Does dependency

* Mon Sep 30 2013 Igor Vlasenko <viy at> 0.35-alt1
- initial import by package builder

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