I am trying to figure out how clever it actually is.
I reversed \L\u with \u\L expecting different results and got the same result.
Another Company Name Ltd

Why didn't reversing the metacharacters change the results.

the \L escape forces lowercase
When written in lowercase (\l and \u), they affect only the next character: 

$pt=~s/(\w+)/\u\L$1/g

$pt=~s/(\w+)/\L\u$1/g


> \L\u  --  isn't perl clever?



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to