Pcore

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "Net::SSLeay" : "0",
            "Package::Stash::XS" : "0",
            "Perl::Tidy" : "0",
            "PerlIO::Layers" : "0",
            "Pod::Markdown" : "0",
            "Protocol::HTTP2" : "v1.9.0",
            "Ref::Util" : "0",
            "Ref::Util::XS" : "0",
            "Regexp::Util" : "0",
            "Software::License" : "0",
            "Sort::Naturally" : "0",
            "String::CRC32" : "v1.7.0",
            "Sub::Util" : "v1.50.0",
            "Sys::CpuAffinity" : "0",
            "Term::ReadKey" : "0",
            "Term::Size::Any" : "0",
            "Text::CSV_XS" : "v1.37.0",
            "Text::Xslate" : "0",
            "Text::Xslate::Bridge::TT2Like" : "0",
            "Time::Moment" : "v0.44.0",
            "Time::Zone" : "v2.30.0",

cpanfile  view on Meta::CPAN


requires 'Variable::Magic';
requires 'B::Hooks::AtRuntime';
requires 'B::Hooks::EndOfScope::XS';
requires 'Const::Fast';
requires 'Clone';
requires 'Package::Stash::XS';

# Pcore::Core::Dump
requires 'PerlIO::Layers';
requires 'Sort::Naturally';

# OOP
requires 'Class::XSAccessor';

# AnyEvent
requires 'EV',                 v4.22.0;
requires 'AnyEvent',           v7.14.0;
requires 'Coro',               v6.52.0;
requires 'Guard',              v1.23.0;
requires 'IO::FDPass',         v1.2.0;

lib/Pcore/Core/Dump/Dumper.pm  view on Meta::CPAN

package Pcore::Core::Dump::Dumper;

use Pcore -class, -ansi;
use Pcore::Util::Scalar qw[refaddr isweak reftype blessed looks_like_number tainted];
use Pcore::Util::Text qw[escape_perl remove_ansi add_num_sep];
use re qw[];
use Sort::Naturally qw[nsort];
use PerlIO::Layers qw[];

has color  => (0);    # colorize dump
has tags   => (0);    # do not add tags
has indent => (4);    # indent spaces

has _indent => ( init_arg             => undef );
has _seen   => ( sub { {} }, init_arg => undef );    # HashRef

our $COLOR = {

lib/Pcore/Util/Data.pm  view on Meta::CPAN

package Pcore::Util::Data;

use Pcore -const, -export;
use Pcore::Util::Text qw[decode_utf8 encode_utf8 escape_perl trim];
use Pcore::Util::List qw[pairs];
use Sort::Naturally qw[nsort];
use Pcore::Util::Scalar qw[is_ref is_blessed_ref is_plain_scalarref is_plain_arrayref is_plain_hashref];

our $EXPORT = {
    ALL   => [qw[encode_data decode_data]],
    PERL  => [qw[to_perl from_perl]],
    JSON  => [qw[to_json from_json]],
    CBOR  => [qw[to_cbor from_cbor]],
    YAML  => [qw[to_yaml from_yaml]],
    XML   => [qw[to_xml from_xml]],
    INI   => [qw[to_ini from_ini]],



( run in 2.847 seconds using v1.01-cache-2.11-cpan-56fb94df46f )