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/In reply to Re^8: Quick 'Quote' DBI Question
by ww
in thread Quick 'Quote' DBI Question
by Trihedralguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |