$_ =~ s/<REPLACE_TEXT_1>/$replace_string/; [download]
In reply to Re: replacing text with a function by vek in thread replacing text with a function by Anonymous Monk