Skip to content

Instantly share code, notes, and snippets.

@gphat
Created August 26, 2011 21:06
Show Gist options
  • Save gphat/1174445 to your computer and use it in GitHub Desktop.
Save gphat/1174445 to your computer and use it in GitHub Desktop.
my $verifier = Data::Verifier->new(
profile => {
email => {
post_check => sub {
my $r = shift;
my $status = $r->get_value('status');
if(defined($status) && $status eq 'Publish now') {
return 0 unless defined($r->get_value('not_before_date_str');
}
return 1;
}
},
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment