in reply to Re^2: Badwords Routinein thread Badwords Routine
Or maybe push(@bad_entered, $badword);, in case more than one bad word is found. You can then print the list of bad words (@bad_entered) in the email.