From the same perldoc perlop#Gory-details-of-parsing-quoted-constructs
'' , q//, tr''', y''', the replacement of s''' The only interpolation is removal of \ from pairs of \\ . Therefore "-" in tr''' and y''' is treated literally as a hyphen and no character range is available. \1 in the replacement of s''' does not work as $1 .
HTH
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
In reply to Re: undocumented tr special behavior for single-quoted transform
by LanX
in thread undocumented tr special behavior for single-quoted transform
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |