YanoRyuichi.com/
Wiki
Blog
GitHub
Sandbox
開始行:
* FormValidator-Simpleのプラグインを作る [#a516f343]
package MyFVS;
use strict;
use warnings;
use FormValidator::Simple::Constants;
sub MY_VALIDATION {
my ($self, $params, $args) = @_;
my ($year, $month, $day) = ($params->[0], $params->[1...
my ($foo, $bar) = ($args->[0], $args->[1]);
return TRUE;
}
1;
FormValidator::Simple->load_plugin('MyFVS');
my $result = FormValidator::Simple->check(
$q => [
{ my_date => ['year','month','day'] } => [ ['MY_V...
]
);
終了行:
* FormValidator-Simpleのプラグインを作る [#a516f343]
package MyFVS;
use strict;
use warnings;
use FormValidator::Simple::Constants;
sub MY_VALIDATION {
my ($self, $params, $args) = @_;
my ($year, $month, $day) = ($params->[0], $params->[1...
my ($foo, $bar) = ($args->[0], $args->[1]);
return TRUE;
}
1;
FormValidator::Simple->load_plugin('MyFVS');
my $result = FormValidator::Simple->check(
$q => [
{ my_date => ['year','month','day'] } => [ ['MY_V...
]
);
ページ名: