in reply to Need help to substitute

You need to escape the \-s. After that

=~ s/(install_temp|install_patch)/install/ should work. Or am I missing something?

I'm too lazy to be proud of being impatient.