if (/badword/i){print "You are a naughty person...You should wash your mouth with soap} #### s/badword1//; s/badword2//; ..etc;