Matthew Perry managed to create one of the most influential personas in TV history on “Friends.” In real life, he was often sweet and kind as well.