in reply to Can I move a substitution string into a constant?
Or use a $tmp var as tcf22 suggests.$stmt =~ s/${\&TABLE_NAME()}.//g;
(Update: don't forget to use quotemeta if needed:
and I have a feeling you meant to backslash that .)$stmt =~ s/\Q${\&TABLE_NAME()}.\E//g
|
|---|