perl-Array-To-Moose-0.0.9-alt1.noarch.rpm


Advertisement

Description

perl-Array-To-Moose - Build Moose objects from a data array

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Array-To-Moose
Package version 0.0.9
Package release alt1
Package architecture noarch
Package type rpm
Installed size 39.14 KB
Download size 39.14 KB
Official Mirror ftp.altlinux.org
As shown in the above examples, the general usage is:
package MyClass;
use Moose;
(define Moose object(s))
...
use Array::To::Moose;
...
my $data_ref = selectall_arrayref($sql); # for example
my $object_ref =  array_to_moose(
data => $data_ref
desc => {
class    => 'MyClass',
key      => K,   # only for HashRefs
attrib_1 => N1,
attrib_2 => N2,
...
attrib_m => [ M ],
...
SubObject => {
class => 'MySubClass',
...
}
}
);
Where:
`array_to_moose()' returns an array- or hash reference of `MyClass'
Moose objects.
All Moose classes (`MyClass', `MySubClass', etc) must
already have been defined by the user.
`$data_ref' is a reference to an array containing references to arrays of
scalars of the kind returned by, e.g.,
DBI::selectall_arrayref()
`desc' (descriptor) is a reference to a hash which contains several types
of data:
`class =>' 'MyObj' is *required* and defines the Moose class or
package which will contain the data. The user should have defined this class
already.
`key => N ' is required
if the Moose object being constructed is to be a hashref, either at
the top-level Moose object returned from `array_to_moose()' or as a
"`isa => 'HashRef[...]''" sub-object.
`attrib => N ' where `attrib' is the name of a Moose attribute
("`has 'attrib' =>' ...")
`attrib => [ N ] ' where `attrib' is the name of a Moose "simple" sub-attribute
("`has => 'attrib' ( isa => 'ArrayRef[Type]' ...)' "), where `Type'
is a "simple" Moose type, e.g., `'Str', 'Int'', etc.
In the above cases, `N' is a positive integer containing the
the corresponding zero-indexed
column number in the data array where that attribute's data is to be found.

Alternatives

Package Version Architecture Repository
perl-Array-To-Moose - - -

Requires

Name Value
/usr/share/perl5 -
perl(Array/GroupBy.pm) -
perl(Data/Dumper.pm) -
perl(Params/Validate/Array.pm) -
perl(base.pm) -
perl(version.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Array/To/Moose.pm) = 0.0.009
perl-Array-To-Moose = 0.0.9-alt1

Download

Type URL
Binary Package perl-Array-To-Moose-0.0.9-alt1.noarch.rpm
Source Package perl-Array-To-Moose-0.0.9-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-Array-To-Moose rpm package:
    # sudo apt-get install perl-Array-To-Moose

Files

Path
/usr/share/doc/perl-Array-To-Moose-0.0.9/Changes
/usr/share/doc/perl-Array-To-Moose-0.0.9/README
/usr/share/perl5/Array/
/usr/share/perl5/Array/To/Moose.pm

See Also

Package Description
perl-Array-Tour-0.06-alt1.noarch.rpm Base class for Array Tours
perl-Array-Transpose-0.06-alt1.noarch.rpm Transposes a 2-Dimensional Array
perl-Array-Transpose-Ragged-0.01-alt1.noarch.rpm Transpose a ragged array
perl-Array-Uniq-0.02-alt1.noarch.rpm perl module Array-Uniq
perl-Array-Utils-0.5-alt1_22.noarch.rpm Small utils for array manipulation
perl-Array-Window-1.02-alt1_10.noarch.rpm Array-Window Perl module: calculate windows/subsets/pages of arrays
perl-Array-Windowed-1.00-alt1.noarch.rpm return a windowed slice of the array
perl-ArrayHashMonster-0.02-alt1.noarch.rpm perl module ArrayHashMonster
perl-ArrayHashSearch-0.04-alt1.noarch.rpm perl module ArrayHashSearch
perl-Arthas-Defaults-4.0.1-alt1.noarch.rpm Defaults for coding - Do not use if you're not Arthas
perl-Articulate-0.005-alt1.noarch.rpm Lightweight Perl CMS Framework
perl-Artifactory-Client-1.6.1-alt1.noarch.rpm Perl client for Artifactory REST API
perl-AsciiDB-TagFile-1.06-alt1.noarch.rpm perl module AsciiDB-TagFile
perl-Asm-Preproc-1.02-alt1.noarch.rpm Preprocessor to be called from an assembler
perl-Asm-X86-0.25-alt1.noarch.rpm List of instructions and registers of Intel x86-compatible processors,
Advertisement
Advertisement