Christopher Spears wrote:
> In the script I am writing, I use the following
> regular expression:
> 
> $pass =~ tr/a-z/A-Z/s;
> 
> If I give the expression a string like "Occ", then the
> expression will convert it to "OC" instead of "OCC"!
> What is going on?

        the /s says to squash ( Programming Perl ) duplicate characters. Remove 
the s and it will do what you want.

Wags ;)


*******************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
*******************************************************


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to