RE: lc vs. tr

2001-08-14 Thread Drew Cohan
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

Re: lc vs. tr

2001-08-14 Thread register
Using Benchmark.pm ... the answer is to use lc ... if you flip through to the Perl Cookbook pg 19 or receipe 1.9 you will find that tr is the wrong way to do changing of case (or at least tr/A-Z/a-z/ since it will miss accented characteers and so on..) THe reason you are getting the error is beca

Re: lc vs. tr

2001-08-14 Thread Peter Scott
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 to tell tr to ignore