Пакет perl-Data-Printer: Информация

  • Default inline alert: Версия в репозитории: 1.002001-alt1

Исходный пакет: perl-Data-Printer
Версия: 0.40-alt1
Последняя версия по данным Repology
Собран:  2 августа 2017 г. 22:24 в задании #186160
Категория: Разработка/Perl
Сообщить об ошибке в пакете
Домашняя страница: http://search.cpan.org/dist/Data-Printer/

Лицензия: perl
О пакете: colored pretty-print of Perl data structures and objects
Описание: 
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;

Список rpm-пакетов, предоставляемых данным srpm-пакетом:
perl-Data-Printer (noarch)

Сопровождающий: Igor Vlasenko

Список участников:
Igor Vlasenko

Права:
Igor Vlasenko
@everybody

    1. perl(Package/Stash.pm)
    2. perl(Scalar/Util.pm)
    3. perl(Sort/Naturally.pm)
    4. perl(Term/ANSIColor.pm)
    5. perl(Test/More.pm)
    6. perl(base.pm)
    7. perl(if.pm)
    8. perl(mro.pm)
    9. perl(version.pm)
    10. perl-devel
    11. perl-podlators
    12. rpm-build-perl
    13. perl(B.pm)
    14. perl(B/Deparse.pm)
    15. perl(Capture/Tiny.pm)
    16. perl(Carp.pm)
    17. perl(Clone/PP.pm)
    18. perl(DBD/DBM.pm)
    19. perl(DBIx/Class/Core.pm)
    20. perl(DBIx/Class/Schema.pm)
    21. perl(ExtUtils/MakeMaker.pm)
    22. perl(Fcntl.pm)
    23. perl(File/HomeDir.pm)
    24. perl(File/HomeDir/Test.pm)
    25. perl(File/Spec.pm)
    26. perl(File/Temp.pm)
    27. perl(MRO/Compat.pm)

Последнее изменение


2 августа 2017 г. Igor Vlasenko 0.40-alt1
- automated CPAN update
9 мая 2017 г. Igor Vlasenko 0.39-alt1
- automated CPAN update
10 февраля 2016 г. Igor Vlasenko 0.38-alt1
- automated CPAN update