Jenny Chen am Montag, 12. Dezember 2005 21.49:
Hi All,
Hi
Does anyone know how to convert a string in lower case
to upper case in Perl? Thanks.
yes,
perldoc -f uc
does.
hth, joe
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Mon, 12 Dec 2005, Jenny Chen wrote:
Does anyone know how to convert a string in lower case
to upper case in Perl? Thanks.
Undoubtedly.
How did you try to do it ?
Did you try the s/// substitution feature ?
perldoc -f s
Did you try the tr/// transliteration operator ?
perldoc -f tr
Also:
$name =~ tr/a-z/A-Z/;
(the string is in $name variable)
-Original Message-
From: John Doe [mailto:[EMAIL PROTECTED]
Sent: Monday, December 12, 2005 3:02 PM
To: beginners@perl.org
Subject: Re: convert string from lowercase to uppercase
Jenny Chen am Montag, 12. Dezember 2005
Buehler, Bob am Montag, 12. Dezember 2005 22.18:
Also:
$name =~ tr/a-z/A-Z/;
(the string is in $name variable)
Ok, but this won't match words in my language (and others) or words containing
unicode.
:-)
-Original Message-
From: John Doe [mailto:[EMAIL PROTECTED]
[...]
Jenny