NAME

Syccess::Validator::Length - A validator to check the length of the value in chars

VERSION

version 0.008

SYNOPSIS

Syccess->new(
  fields => [
    pin => [ length => 4 ],
    username => [ length => {
      min => 3,
      max => 12,
      message => 'Username must be between %s and %s characters.'
    } ],
    tweet => [ length => { max => 140 } ],
  ],
);

DESCRIPTION

This validator allows to check for the amount of characters in the value. The default error message depends on the parameter given.

SUPPORT

IRC

Join #sycontent on irc.perl.org. Highlight Getty for fast reaction :).

Repository

http://github.com/SyContent/Syccess
Pull request and additional contributors are welcome

Issue Tracker

http://github.com/SyContent/Syccess/issues

AUTHOR

Torsten Raudssus <torsten@raudss.us>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Torsten Raudssus.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.