Algorithm-CouponCode
view release on metacpan or search on metacpan
lib/Algorithm/CouponCode.pm view on Meta::CPAN
You can supply a regular expression for matching 4-letter words which should
not appear in generated output. The C<make_bad_regex()> helper function can
be used to turn a list of words into a suitable regular expression.
=back
=head2 cc_validate( options )
Takes a code, cleans it up and validates the checkdigits. Returns the
normalised (and untainted) version of the code on success or undef on error.
The following named parameters may be supplied:
=over 4
=item code
The code to be validated. The parameter is mandatory.
=item parts
( run in 0.271 second using v1.01-cache-2.11-cpan-d6f9594c0a5 )