Complex sentence: At Rogers's trial in 1904, Perham was the state's key witness against Rogers, and because of his testimony (and his youth) Perham avoided a death sentence.
Split into simpler sentences: At Rogers's trial in 1904, Perham was the state's key witness against Rogers. Due to his testimony (and his youth), Perham avoided a death sentence.