Also, using ' (single-quote) as a delimiter for either or both of the substitution pattern or replacement string of a s/// will force the use of single-quotish (non-)interpolation and escapology.
>perl -wMstrict -le "$_ = 'T}@T...T}@T{'; s'T}@T.*T}@T{'\(bu'sm; print qq{'$_'}; " '\(bu'
In reply to Re: special character substitution
by AnomalousMonk
in thread special character substitution
by bill b
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |