Data-Edit-Struct
view release on metacpan or search on metacpan
"Test::Version" : "1"
}
},
"runtime" : {
"requires" : {
"Carp" : "0",
"Data::DPath" : "0.56",
"Exporter" : "0",
"List::Util" : "0",
"Params::ValidationCompiler" : "0.24",
"Ref::Util" : "0",
"Safe::Isa" : "0",
"Scalar::Util" : "0",
"Storable" : "0",
"Type::Library" : "0",
"Type::Utils" : "0",
"Types::Standard" : "0",
"custom::failures" : "0",
"failures" : "0",
"strict" : "0",
"warnings" : "0"
version: '0.07'
Data::Edit::Struct::Types:
file: lib/Data/Edit/Struct/Types.pm
version: '0.07'
requires:
Carp: '0'
Data::DPath: '0.56'
Exporter: '0'
List::Util: '0'
Params::ValidationCompiler: '0.24'
Ref::Util: '0'
Safe::Isa: '0'
Scalar::Util: '0'
Storable: '0'
Type::Library: '0'
Type::Utils: '0'
Types::Standard: '0'
custom::failures: '0'
failures: '0'
strict: '0'
warnings: '0'
requires "Carp" => "0";
requires "Data::DPath" => "0.56";
requires "Exporter" => "0";
requires "List::Util" => "0";
requires "Params::ValidationCompiler" => "0.24";
requires "Ref::Util" => "0";
requires "Safe::Isa" => "0";
requires "Scalar::Util" => "0";
requires "Storable" => "0";
requires "Type::Library" => "0";
requires "Type::Utils" => "0";
requires "Types::Standard" => "0";
requires "custom::failures" => "0";
requires "failures" => "0";
requires "strict" => "0";
requires "warnings" => "0";
; --- Project-specific directives
[AutoPrereqs]
[Prereqs]
Carp = 0
Data::DPath = 0.56
Exporter = 0
List::Util = 0
Params::ValidationCompiler = 0.24
Ref::Util = 0
Safe::Isa = 0
Scalar::Util = 0
Type::Library = 0
Type::Utils = 0
Types::Standard = 0
custom::failures = 0
failures = 0
strict = 0
warnings = 0
Storable = 0
lib/Data/Edit/Struct.pm view on Meta::CPAN
# ABSTRACT: Edit a Perl structure addressed with a Data::DPath path
use strict;
use warnings;
use Exporter 'import';
our $VERSION = '0.07';
use Ref::Util qw[
is_plain_arrayref is_arrayref
is_plain_hashref is_hashref
is_scalarref is_ref is_coderef
];
use Types::Standard -types;
use Data::Edit::Struct::Types -types;
use custom::failures 'Data::Edit::Struct::failure' => [ qw{
input::dest
t/00-report-prereqs.dd view on Meta::CPAN
'Test::Version' => '1'
}
},
'runtime' => {
'requires' => {
'Carp' => '0',
'Data::DPath' => '0.56',
'Exporter' => '0',
'List::Util' => '0',
'Params::ValidationCompiler' => '0.24',
'Ref::Util' => '0',
'Safe::Isa' => '0',
'Scalar::Util' => '0',
'Storable' => '0',
'Type::Library' => '0',
'Type::Utils' => '0',
'Types::Standard' => '0',
'custom::failures' => '0',
'failures' => '0',
'strict' => '0',
'warnings' => '0'
#! perl
use Test2::Bundle::Extended;
use Test2::API qw[ context ];
use Ref::Util qw[ is_arrayref ];
use Data::Edit::Struct qw[ edit ];
subtest 'container' => sub {
my %defaults = (
dtype => 'container',
stype => 'container',
);
subtest 'no replacement (e.g. deletion)' => sub {
( run in 0.284 second using v1.01-cache-2.11-cpan-4d50c553e7e )