Link to home
Start Free TrialLog in
Avatar of chrisshaffer
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?
ASKER CERTIFIED SOLUTION
Avatar of rj2
rj2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chrisshaffer
chrisshaffer

ASKER

Looks good.... Thanks for the quick response.