Thank you tybalt89; I get it :-) The REPLACEMENT expression is a perl script, and the last expression evaluated is the script's return value. I did $adj; to be grammatically correct, although plain $adj works. As I said in my post, I have much use for this idiom. The /r is also spot on with $1. Thanks again.
In reply to Re^2: regex in REPLACEMENT in s///
by perlboy_emeritus
in thread regex in REPLACEMENT in s///
by perlboy_emeritus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |