> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of David Alcock
> Sent: Sunday, May 11, 2008 4:26 PM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Mainframe programming vs the Web
> 
> Ever since the Web came along I've been annoyed by those web
> sites that won't accept spaces or dashes like for credit cards
> and phone numbers.  I know that even ancient mainframe COBOL has
> support for removing them with one command.   I see that it's
> just pure laziness as I suspected all along: 
> 
>    http://www.unixwiz.net/ndos-shame.html

An even better one might be "$ccnum=~tr/[0-9]//cd;". This simply removes
all non-numeric characters from the string. But that might be "overkill"
in this case.

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.  

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to