strange result with reg exp

2005-09-14 Thread Christopher Spears
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? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: strange result with reg exp

2005-09-14 Thread Wagner, David --- Senior Programmer Analyst --- WGO
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 )

Re: strange result with reg exp

2005-09-14 Thread John W. Krahn
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? tr/// does NOT use regular expressions, it

Re: strange result with reg exp

2005-09-14 Thread Jeff 'japhy' Pinyan
On Sep 14, Christopher Spears said: 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? It sounds like you're using an operator you