Have a good time of the day.
How do i accomplish an exchange of «йц,» to «фы,» as follows:
use utf8::all; $sod='йц,'; $a=q~(?^u:йц(\W))~; #$b=qq~фы$1~; $b=q~фы$1~; print "$sod\n"; $sod=~s#$a#$b#g; print "$sod\n";
? I expect that regexp turns «йц,» to «фы,», but actually i get «йц,» turns to «фы» or to «фы$1» -- depending on whither i use $b w/ double or single quatation.
In reply to Regexp interpolation. by nikolay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |