[comp.lang.perl] $var =~ tr/pattern//d

rbj@uunet.UU.NET (Root Boy Jim) (01/23/91)

I cannot get 3.044 on a Sequent Symmetry to do translations on variables.
I'm trying something like:

	$var = 'qwertyuiop';
	$var =~ tr/m-t//d;

When I do this, $var is unchanged, not 'weyui'. If I instead do:

	$_ = 'qwertyuiop';
	tr/m-t//d;

Then $_ is as expected, 'weyui'.

Oh yes, 3.041 on a Sparc SunOS 4.1.1 behaves identically.
Am I misreading the manual or is something broke?
-- 

	Root Boy Jim Cottrell <rbj@uunet.uu.net>
	Close the gap of the dark year in between