The prolific character actor also was memorable on 'The Many Loves of Dobie Gillis,' 'Star Trek' and 'In the Heat of the Night.'