With /e, the replacement is interpreted as code, so do what you'd normally do and quote the letters:
s/(\d+)/($1 > 10)?'m':'n'/e;
In reply to Re: Escape Quote-Like Operators
by BrowserUk
in thread Escape Quote-Like Operators
by MentalAbsence
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |