1) yes. you just did. if you're wondering what something as simple as that does you should read the regex documentation first. See
perlretut. Come back with a more specific question if you're still confused after reading that.
2) y and tr are the same operator.