http://www.perlmonks.org?node_id=133923


in reply to next question...
in thread Removing commas and dollar signs from a variable.

tr/// is for characters, s/// is for strings. tr is generally a better choice where it works because it's more efficent. s/// can do everything tr can because it can work with strings of length 1 (ie - one character), it's just slightly slower. I guess it's more about taste and speed than anything else