Regexp::Common::support β Support functions for Regexp::Common.
| Use Case | Command | Description |
|---|---|---|
| π Validate a credit card number (Luhn checksum) | luhn($number) |
Returns true if the number passes the Luhn checksum test |
| π¦ Import the support function | use Regexp::Common::_support qw /luhn/; |
Loads the luhn subroutine into the current namespace |
use Regexp::Common::_support qw /luhn/;
luhn ($number) # Returns true/false.
This module contains some subroutines to be used by other Regexp::Common modules. Itβs not intended to be used directly. Subroutines from the module may disappear without any notice, or their meaning or interface may change without notice.
This subroutine returns true if its argument passes the Luhn checksum test.
<http://www.webopedia.com/TERM/L/Luhn_formula.html>.
Abigail (*regexp-common AT abigail.be*).
Bound to be plenty.
This software is Copyright (c) 2001 β 2017, Damian Conway and Abigail.
This module is free software, and may be used under any of the following licenses:
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 12:05 @216.73.216.194
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format