> Accepting variables in tr// makes no sense. It defeats the purpose of
> tr/// - extremely fast, known transliterations.

The propsal extends tr/// to handle extremely fast transliterations
whose nature is not known at compile time.

> 
> tr///e is the same as s///g:
> 
>     tr/$foo/$bar/e  ==  s/$foo/$bar/g

It is nothing of the sort.

        $foo = 'fo';
        $bar = 'ba';

        $s1 = $s2 = "foolproof";

        $s1 =~ tr/$foo/$bar/e;
        # The result is "baalpraab";

        $s2 =~  s/$foo/$bar/g;
        # The result is "baolproof"


Reply via email to