Query: validation::class::collection
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Validation::Class::Collection(3pm) User Contributed Perl Documentation Validation::Class::Collection(3pm)NAMEValidation::Class::Collection - Generic Container Class for Various CollectionsVERSIONversion 7.70SYNOPSISuse Validation::Class::Collection; my $foos = Validation::Class::Collection->new; $foos->add(foo => Foo->new); print $foos->count; # 1 objectDESCRIPTIONValidation::Class::Collection provides an all-purpose container for hash objects. This class is primarily used as a base class for collection management classes.METHODSnew my $self = Validation::Class::Collection->new; add $self = $self->add(foo => Foo->new); $self->add(foo => Foo->new, bar => Bar->new); clear $self = $self->clear; count my $count = $self->count; each $self = $self->each(sub{ my ($name, $object) = @_; ... }); find my $matches = $self->find(qr/update_/); # hashref get my $object = $self->get($name); has if ($self->has($name)) { ... } hash my $hash = $self->hash; keys my @keys = $self->keys; list my @objects = $self->list; remove $object = $self->remove($name); values my @objects = $self->values;AUTHORAl Newkirk <anewkirk@ana.io>COPYRIGHT AND LICENSEThis 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. perl v5.14.2 2012-06-28 Validation::Class::Collection(3pm)
Similar Topics in the Unix Linux Community |
---|
Perl Regular Expression - Whitelist |
Filename Validation |
Variable Validation |
Count of Multiple Fields(After Validation) in UNIX |
I need to build a tool for Automatic GUI Validation |