in reply to tr/// statement

tr///doesn't interpolate like s/// or m//, as you've seen. You can get the effect you want with:

eval "tr/$x/$y/";

The double quotes get variables interpolated before the expression is evaluated.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: tr/// statement
by supernewbie (Beadle) on Jul 19, 2001 at 13:15 UTC
    Thanks a million! :)