$pattern = qr/r(.)(.)/; my $replace = sub { "$_[0]ead" }; $s1 =~ s/$pattern/++$k && $replace->( $2 )/ge;
In reply to Re: defering substitution within double-quoted strings?
by chromatic
in thread defering substitution within double-quoted strings?
by SeekerOKnowledge
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |