Main > Programming > Libraries >

Params::Profile 0.10

Params::Profile 0.10

Sponsored Links

Params::Profile 0.10 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.006 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 926
Date added: 2007-04-11
Publisher: Michiel Ootjers

Params::Profile 0.10 description

Params::Profile is a Perl module for registering Parameter profiles.

SYNOPSIS

package Foo::Bar;

use Params::Profile;

### Single profile
Params::Profile->register_profile(
method => subroto,
profile => {
testkey1 => { required => 1 },
testkey2 => {
required => 1,
allow => qr/^d+$/,
},
testkey3 => {
allow => qr/^w+$/,
},
},
);

sub subroto {
my (%params) = @_;

return unlesss Params::Profile->validate(params => %params);
### DO SOME STUFF HERE ...
}

my $profile = Params::Profile->get_profile(method => subroto);

### Multiple Profile
Params::Profile->register_profile(
method => subalso,
profile => [
subroto,
{
testkey4 => { required => 1 },
testkey5 => {
required => 1,
allow => qr/^d+$/,
},
testkey6 => {
allow => qr/^w+$/,
},
},
],
);


sub subalso {
my (%params) = @_;

### Checks parameters agains profile of subroto and above registered
### profile
return unlesss Params::Profile->validate(params => %params);

### DO SOME STUFF HERE ...
}

Params::Profile provides a mechanism for a centralised Params::Check or a Data::FormValidater profile. You can bind a profile to a class::subroutine, then, when you are in a subroutine you can simply call Params::Profile->check($params) of Params::Profile->validate($params) to validate against this profile. Validate will return true or false on successfull or failed validation. Check will return what Data::FormValidator or Params::Check would return. (For Params::Check this is simply a hash with the validated parameters , for Data::FormValidator, this is a Data::FormValidator::Results object)

Params::Profile 0.10 Screenshot

Advertisements

Params::Profile 0.10 Keywords

Bookmark Params::Profile 0.10

Hyperlink code:
Link for forum:

Params::Profile 0.10 Copyright

WareSeeker periodically updates pricing and software information of Params::Profile 0.10 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Params::Profile 0.10 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Params-Util is a simple, compact and correct param-checking functions. Free Download
Params::Validate is a Perl module to validate method/function parameters. Free Download
RPM::Util::Files is a Perl module to generate %files list in RPM Specfile. Free Download
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. Free Download
ModPerl::ParamBuilder is a Perl module that makes building custom Apache directives easy. Free Download
Devel::Profile is a Perl module to tell me why my perl program runs so slowly. Free Download
Hash::Merge Perl module merges arbitrarily deep hashes into a single hash. Free Download
Graph::Flowchart is a Perl module that can generate easily flowcharts as Graph::Easy objects. Free Download