$ perl -wE '$r = q{bar$1}; $_ = "foo"; s/(fo)o/$r/e; say' bar$1
In reply to Re^2: Slurping search-replace patterns from a file
by JavaFan
in thread RESOLVED: Slurping search-replace patterns from a file
by HKS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |