perl-Data-FetchPath-0.02-alt1.noarch.rpm


Advertisement

Description

perl-Data-FetchPath - "eval"able paths to your complex data values

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Data-FetchPath-0.02-alt1.noarch.rpm
Package name perl-Data-FetchPath
Package version 0.02
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 6.10 KB
Installed size 6.10 KB
Quick summary of what the module does.
use Data::FetchPath 'path';
use Test::Most;
my $data = {
foo => 3,
bar => [qw/ this that 3 /],
3   => undef,
baz => {
trois  => 3,
quatre => [qw/ 1 2 3 4 /],
}
};
my $target_value = 3;
ok $paths = path( $data, $target_value ), 'Fetching paths for matching data should succeed';
my @expected = sort qw(
{bar}[2]
{baz}{trois}
{baz}{quatre}[2]
{foo}
);
eq_or_diff $path, \@expected,
'... and it should return all paths to data values found';
for ( 0 .. $#expected ) {
my $found_value = eval "\$data->$expected[$_]";
is $found_value, $target_value,
'... and all values should match the value you looked for';
}
}

Alternatives

Package Version Architecture Repository
perl-Data-FetchPath - - -

Requires

Name Value
/usr/share/perl5 -
perl(Scalar/Util.pm) -
perl(base.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Data/FetchPath.pm) = 0.020
perl-Data-FetchPath = 0.02-alt1

Download

Type URL
Mirror ftp.altlinux.org
Binary Package perl-Data-FetchPath-0.02-alt1.noarch.rpm
Source Package perl-Data-FetchPath-0.02-alt1.src.rpm

Install Howto

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

Files

Path
/usr/share/doc/perl-Data-FetchPath-0.02/Changes
/usr/share/doc/perl-Data-FetchPath-0.02/README
/usr/share/perl5/Data/FetchPath.pm

See Also

Package Description
perl-Data-File-Map-0.09-alt1.noarch.rpm Read data file definitions stored as XML
perl-Data-Filter-1.020-alt1.noarch.rpm perl module Data-Filter
perl-Data-Find-0.03-alt1.noarch.rpm Find data in arbitrary data structures
perl-Data-FixedFormat-0.04-alt1.noarch.rpm perl module Data-FixedFormat
perl-Data-FlexSerializer-1.10-alt1.noarch.rpm Pluggable (de-)serialization to/from compressed/uncompressed JSON/Storable/Sereal/Whatever
perl-Data-Floid-0.01-alt1.noarch.rpm simple, lightweight unique identifier generator
perl-Data-Flow-1.02-alt1_23.noarch.rpm Perl extension for simple-minded recipe-controlled build of data
perl-Data-Focus-0.03-alt1.noarch.rpm generic getter/setter/traverser for complex data structures
perl-Data-Form-Elements-0.61-alt1.noarch.rpm perl module Data-Form-Elements
perl-Data-FormValidator-Constraints-CreditCard-0.02-alt1.noarch.rpm Data constraints, using Business::CreditCard
perl-Data-FormValidator-Constraints-DateTime-1.11-alt1_26.noarch.rpm Data::FormValidator constraints for dates and times
perl-Data-FormValidator-Constraints-HTTP-0.01-alt1.noarch.rpm perl module Data-FormValidator-Constraints-HTTP
perl-Data-FormValidator-Constraints-Japanese-0.04-alt1.noarch.rpm Japan-Specific Constraints For Data::FormValidator
perl-Data-FormValidator-Constraints-MethodsFactory-0.02-alt1.noarch.rpm Create constraints for Data::FormValidator
perl-Data-FormValidator-Constraints-Words-0.10-alt1.noarch.rpm A contraints module of word patterns for Data::FormValidator
Advertisement
Advertisement