
CGI::FormMagick::Validator::Length - length-related validation routines

The data is at least n characters long: length($data) >= $n
is( minlength(undef, "abc", 2), "OK" , "3 letter string is at least 2 chars long"); isnt( minlength(undef, "abc", -2), "OK" , "Negative minlength should fail"); isnt( minlength(undef, "abc", 0), "OK" , "Zero minlength should fail"); isnt( minlength(undef, "abc", "def"), "OK" , "Non-numeric minlength should fail"); isnt( minlength(undef, "", 1), "OK" , "Too short string should fail");
The data is no more than n characters long: length($data) <= $n
The data is exactly n characters long: length($data) E== $n
The data is between n and c<m> characters long: length($data) >= $n and length($data) <= $m.

The main perldoc for CGI::FormMagick

Kirrily "Skud" Robert <skud@infotrope.net>
More information about FormMagick may be found at http://sourceforge.net/projects/formmagick/