NAME
Validation::Class::Mapping - Generic Container Class for a Hash Reference
VERSION
version 7.900059
SYNOPSIS
my $foos = Validation::Class::Mapping->new;
$foos ->add( foo => 'one foo' );
$foos ->add( bar => 'one bar' );
print $foos ->count;
|
DESCRIPTION
Validation::Class::Mapping is a container class that provides general-purpose functionality for hashref objects.
METHODS
new
my $self = Validation::Class::Mapping->new;
|
add
$self = $self ->add( foo => 1, bar => 2);
|
clear
count
my $count = $self ->count;
|
delete
$value = $self -> delete ( $name );
|
defined
$true if $self -> defined ( $name )
|
each
$self = $self -> each ( sub {
my ( $key , $value ) = @_ ;
});
|
exists
$true if $self -> exists ( $name )
|
get
my $value = $self ->get( $name );
|
grep
$new_list = $self -> grep ( qr/update_/ );
|
has
$true if $self -> has ( $name )
|
hash
iterator
my $next = $self ->iterator();
while ( my $item = $next ->()) {
}
|
keys
list
merge
nsort
pairs
my @pairs = $self ->pairs;
foreach my $pair ( @pairs ) {
}
|
rmerge
rnsort
my @keys = $self ->rnsort;
|
rsort
sort
my @keys = $self -> sort ( sub {...});
|
values
my @values = $self -> values ;
|
AUTHOR
Al Newkirk <anewkirk@ana.io>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Al Newkirk.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.