Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

barbie (2653)

barbie
  reversethis-{ku. ... m} {ta} {eibrab}
http://barbie.missbarbell.co.uk/

Leader of Birmingham.pm [pm.org] and a CPAN author [cpan.org]. Co-organised YAPC::Europe in 2006 and the 2009 QA Hackathon, responsible for the YAPC Conference Surveys [yapc-surveys.org] and the QA Hackathon [qa-hackathon.org] websites. Also the current caretaker for the CPAN Testers websites and data stores.

If you really want to find out more, buy me a Guinness ;)

Links:
Memoirs of a Roadie [missbarbell.co.uk]
[pm.org]
CPAN Testers Reports [cpantesters.org]
YAPC Conference Surveys [yapc-surveys.org]
QA Hackathon [qa-hackathon.org]

Journal of barbie (2653)

Sunday January 20, 2008
06:30 AM

New Constraints for DFV

[ #35434 ]

Every so often I look at the code for Labyrinth and realise it might be of use to others. As such my use of constraints with Data::FormValidator seemed to be another likely candidate.

I have a wrapper that builds the rules for parsing user input, using a configuration file, which makes defining the rules fairly straight forward. It's much easier to name a common constraint for user input than a regex, as it's too easy to make a mistake with regexes. The constraints are all word patterns that restrict the user input to varying degrees. Although I have written the current code with Latin-1 in mind, the code can be subclassed to validate against other character sets.

The code should be on CPAN soon as Data::FormValidator::Constraints::Words.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.