Params::Profile 0.10
Sponsored Links
Params::Profile 0.10 Ranking & Summary
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)
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
Params::Profile 0.10 Keywords
Profile 0.10
FormValidator
Perl module
profile
PARAMS
return
validate
subroto
required
Params::Profile
ParamsProfile
Params::Profile 0.10
Libraries
Programming
Bookmark Params::Profile 0.10
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
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
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
Latest Software
Popular Software
Favourite Software