This module makes it easy to ascertain if a credit card number is intrinsically valid.
It computes the checksum contained in the card number to determine if the card number has been entered correctly, and can report the type of card that the number came from.
This make it possible to determine if the user has entered the card number and type of card correctly. For example, a Perl/Tk script could be used by your phone support staff to make certain that the credit card information passed to them by the user seeking assistance has been transmitted correctly before attempting to log charges against it.
Note: One caveat I didn't see in the readme or perldocs: The credit card numbers passed into the routines can not contain embedded dashes. You must first either change the dashes to spaces, or remove them. Either way works fine.
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link or
or How to display code and escape characters
are good places to start.