SPUG: Odd characters in string
Eric.D.Peterson at alltel.com
Eric.D.Peterson at alltel.com
Fri Jan 26 13:15:07 PST 2007
Thanks for all the suggestions. I did not know that tr returned the
number of characters changed. Thanks for the insight. So I'm left with:
my $cap = $new =~ tr/A-Z//;
my $low = $new =~ tr/a-z//;
my $num = $new =~ tr/0-9//;
my $ctl = $new =~ tr/A-Za-z0-9//c;
Which works for me.
Eric
******************************************************************************************
The information contained in this message, including attachments, may contain
privileged or confidential information that is intended to be delivered only to the
person identified above. If you are not the intended recipient, or the person
responsible for delivering this message to the intended recipient, Alltel requests
that you immediately notify the sender and asks that you do not read the message or its
attachments, and that you delete them without copying or sending them to anyone else.
More information about the spug-list
mailing list