$str=~s/(iteration)(.*)/"<B>".uc($1)."$2 <\/B>"/eg;
(Option 'e' makes the difference; it evaluates the substitution part as Perl code.)
In reply to Re: Calling a function in regex substitution
by almut
in thread Calling a function in regex substitution
by narainhere
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |