No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
>
$_ =~ s/$regex_2/$+{group_x}$+{group_y} changer($+{text})/e;
as you said ... > I think I've understood that the right-side of the s/// needs to be code only ... the RHS must be parsed as code. Hence please try "$+{group_x}$+{group_y}" . changer($+{text}) or $+{group_x} . $+{group_y} . changer($+{text}) If that's not your issue, please try to shorten your description, (TL;DR ;-)
Cheers Rolf PS: people will tell you to use a HTML parser module. ( yep ;-) In reply to Re: Calling sub-routine in regex
by LanX
|
|