Sentence:  That'll <WSD>learn</WSD> him to bust my tomater.<!--Comment: This quote seems to have the contrary sense, that is, it means "to teach not to". -- Answer: "teach" can also be used this way; "that'll teach him to do X". --> 
Meaning of the word marked with <WSD> tags:  To teach.