Along the same lines, if you just want to know if it is capitalized, you
can say $all_caps = $str eq uc $str;
Good Luck!
Tanton
-Original Message-
From: Christopher Solomon
To: Charles Lu
Cc: [EMAIL PROTECTED]
Sent: 8/25/2001 7:05 PM
Subject: Re: alternative to regex when checking for
On Sat, 25 Aug 2001, Charles Lu wrote:
> Does anyone know if there is a built in function that allows you to check to
> see if all the characters in a string is capitalized or not? In other words
> is there a way to check to see if a string is capitalized without using
> regular expression?
Does anyone know if there is a built in function that allows you to check to
see if all the characters in a string is capitalized or not? In other words
is there a way to check to see if a string is capitalized without using
regular expression? Thanks alot
charles
___