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 convert to lowercase
before using tr/abc/222/, as in:

while (<>)
{
        # trying to convert $_ to lowercase using lc before using tr/// function
        lc;
        tr/abc/222/;
        print;
}

This code produces an error "Useless use of lc in void context".  How do I
successfully combine these three lines of code?

TIA,

-- Drew


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

Reply via email to