Or you can even do it without the parens:
$stri = lc $stri;
--Dks
On Fri, Oct 24, 2003 at 09:26:40PM -0700, [EMAIL PROTECTED] wrote:
> or you can do $stri=lc($stri);
>
> -rkl
>
> > try this:
> > $stri =~ tr/A-Z/a-z/;
> >
> > yi
> >
> > --- Andre Chaves Mascarenhas <[EMAIL PROTECTED]> wrote:
or you can do $stri=lc($stri);
-rkl
> try this:
> $stri =~ tr/A-Z/a-z/;
>
> yi
>
> --- Andre Chaves Mascarenhas <[EMAIL PROTECTED]> wrote:
>> Hi if i have an string lets say
>> $stri="Joana Prado";
>> How do i transformm it into
>> "joana prado"
>> (all lowercase)
>> Thanks
>>
>
>
> _
Or
$str = lc($str);
On Friday, October 24, 2003, at 11:23 AM, Yi Chu wrote:
try this:
$stri =~ tr/A-Z/a-z/;
yi
--- Andre Chaves Mascarenhas <[EMAIL PROTECTED]> wrote:
Hi if i have an string lets say
$stri="Joana Prado";
How do i transformm it into
"joana prado"
(all lowercase)
Thanks
___
try this:
$stri =~ tr/A-Z/a-z/;
yi
--- Andre Chaves Mascarenhas <[EMAIL PROTECTED]> wrote:
> Hi if i have an string lets say
> $stri="Joana Prado";
> How do i transformm it into
> "joana prado"
> (all lowercase)
> Thanks
>
__
Do you Yahoo!?
The New Yahoo! Shopp
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
$lower_case = lc ($stri);
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
From: "Andre Chaves Mascarenhas" <[EMAIL PROTECTED]>
Subject: lowercase
Date: Mon, 20 Oct 2003 07:48:15 -0200
> Hi if i have an string lets say
> $stri="Joana Prado";
> How do i transformm it into
> "joana prado"
> (all lowercase)
> Thanks
Hi, I would try the s operator with a regex. You could c
On Mon, 20 Oct 2003, Andre Chaves Mascarenhas wrote:
> Hi if i have an string lets say
> $stri="Joana Prado";
> How do i transformm it into
> "joana prado"
> (all lowercase)
$stri=lc("Joana Prado");
Owen
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL P
> Hi if i have an string lets say
> $stri="Joana Prado";
> How do i transformm it into
> "joana prado"
> (all lowercase)
> Thanks
The lc function returns the lower case of a string:
my $lower_case_string = lc($stri);
This e