in reply to Replace all at once
First, tr is not a regular expression. The two bear a passing resemblance due to syntax, but they are very different beasts.
Now in your example: $text =~ tr^m,n^|\/|,/\/^; there are more charactes on the right than there are on the left.
|
|---|