Thanks to both Peter and register for answering my questions.
-- Drew.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 1:07 PM
To: Drew Cohan
Cc: [EMAIL PROTECTED]
Subject: Re: lc vs. tr
Using Benchmark.pm ... the answer is to use
owercase
> (efficiency, speed, etc)?
>
> lc vs. tr /A-Z/a-z/ ?
>
> 2. Is there an option to tell tr to ignore case? as in:
>
> tr/abc/222/i; #translates regardless of case
>
> 3. If #2 isn't possible, how would you use lc to convert to lowercase
>
At 11:59 AM 8/14/01 -0400, Drew Cohan wrote:
>1. Any opinions on which is better to convert characters into lowercase
>(efficiency, speed, etc)?
>
>lc vs. tr /A-Z/a-z/ ?
lc can handle locales where upper and lower case isn't the same as A-Z vs a-z.
>2. Is there an option
1. Any opinions on which is better to convert characters into lowercase
(efficiency, speed, etc)?
lc vs. tr /A-Z/a-z/ ?
2. Is there an option to tell tr to ignore case? as in:
tr/abc/222/i; #translates regardless of case
3. If #2 isn't possible, how would you use lc to conve