chrisshaffer
asked on
Uppercase sensing?
I admin a forum at work, and it is based upon Perl. Now, I have some users who can't seem to find their 'Caps Lock', and turn it off. I know it sounds silly, but it is a pet-peave of mine that people type in all caps.
I know that Perl has a lc( EXPR ) function, that will return an all-lowercase version of 'EXPR'. But I don't want to run that on all the posts. I only want to run it on the posts where everything is in all capital letters. I realize that this means that good grammer is thrown out the window, but they started it! ;)
Question:
How can I read if string $post is made up of all capital letters?
I know that Perl has a lc( EXPR ) function, that will return an all-lowercase version of 'EXPR'. But I don't want to run that on all the posts. I only want to run it on the posts where everything is in all capital letters. I realize that this means that good grammer is thrown out the window, but they started it! ;)
Question:
How can I read if string $post is made up of all capital letters?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER