in reply to Matching 'words' in a string based on a suffix

You almost have your regular expression correct. The following worked as expected for me:
$example=~s/\w+ing\b/pudding/g;
I used \w for matching so that any grouping of "word characters" followed by "ing" are replaced.

whoops! duplicated someone else's post :( And thanks to mirod for the "\b" correction.