in reply to Re^7: Quick 'Quote' DBI Question
in thread Quick 'Quote' DBI Question
That leaves you needing a small fix to your regex to deal with cases when the SSN is entered with hyphens, as
123-45-6789
However, you might still want to make sure that's the case, by using a numeric quantifier instead of the deathstar
s/if ($ssn =~ /^[0-9]*\z/if ($ssn =~ /^[0-9]{4}\z/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Quick 'Quote' DBI Question
by Trihedralguy (Pilgrim) on Apr 06, 2007 at 15:34 UTC |