Hola Andrés,

You can also use the "tr" command 

$stri =~ tr/A-Z/a-z/ 

The "tr" command also returns the number of transliteration (like s///)

$stri = "Joana Prado";
if (my $tr_modif = ($stri =~ tr/A-Z/a-z/)) {
        print "number of modification = $tr_modif\n";
}
else {
        print "nothing to be done\n";
        }

OUTPUT:
number of modification = 2

-----Message d'origine-----
De: Andre Chaves Mascarenhas [mailto:[EMAIL PROTECTED]
Date: lundi 20 octobre 2003 11:48
À: [EMAIL PROTECTED]
Objet: lowercase


Hi if i have an string lets say
$stri="Joana Prado";
How do i transformm it into
"joana prado" 
(all lowercase)
Thanks

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

Reply via email to