Question: The actor that played Gomer Pyle on "The Andy Griffith Show" also co-starred with Dolly Parton in what 1982 musical?

Context paragraphs:
Jim Nabors: James Thurston Nabors (born June 12, 1930) is a retired American actor, singer, and comedian.  Born and raised in Sylacauga, Alabama, Nabors moved to southern California because of his asthma.  While working at a Santa Monica nightclub, The Horn, he was discovered by Andy Griffith and later joined "The Andy Griffith Show," playing Gomer Pyle.  Nabors, Betty Lynn, Elinor Donahue, and Ron Howard are the last surviving regular cast members from that series.  The character proved popular, and Nabors was given his own spin-off show, "Gomer Pyle, U.S.M.C.."

Margaret Teele: Margaret Teele (born Margaret J. Poby, 5 November 1942 in Joliet, Illinois) and raised in Green Bay, Wisconsin is an American television and motion picture actress who appeared in "Gomer Pyle", "The Andy Griffith Show", "Batman", "The Rounders", "The Accidental Family" and "Captain Nice" and other television shows as well as films such as "The Silencers", "Way Way Out", "Hook, Line & Sinker", "The Unkissed Bride" (also known as "Mother Goose a Go-Go") and "The Human Duplicators".

List of Gomer Pyle, U.S.M.C. episodes: "Gomer Pyle, U.S.M.C." is an American situation comedy created by Aaron Ruben that originally aired on CBS from September 25, 1964, to May 2, 1969.  The series was a spinoff of "The Andy Griffith Show", and the pilot episode was introduced as the final fourth season episode which aired on May 18, 1964.  The show ran for five seasons, with a total of 150 half-hour episodes.  Despite the series' positive reception (the show remained in the Top 10 Nielsen ratings for all five seasons), Nabors quit because he desired to move to something else, 'reach for another rung on the ladder, either up or down'.  In 2006, CBS began releasing the show on DVD; the last season was released in November 2008.

The Best Little Whorehouse in Texas (film): The Best Little Whorehouse in Texas is a 1982 American musical comedy film co-written, produced and directed by Colin Higgins (in his final film as director).  It is an adaptation of the 1978 Broadway musical of the same name, and stars Dolly Parton, Burt Reynolds, Jim Nabors, Charles Durning, Dom DeLuise, Noah Beery, Jr., Robert Mandan, Lois Nettleton, Theresa Merritt, Barry Corbin, Mary Jo Catlett and Mary Louise Wilson.

Gomer Pyle, U.S.M.C.: Gomer Pyle, U.S.M.C. is an American situation comedy that originally aired on CBS from September 25, 1964, to May 2, 1969.  The series was a spin-off of "The Andy Griffith Show", and the pilot episode was aired as the season finale of the fourth season of its parent series on May 18, 1964.  The show ran for a total of 150 half-hour episodes spanning over five seasons, first in black-and-white, and then in color.  In 2006, CBS Home Entertainment (distributed by Paramount) began releasing the series on DVD.  The final season was released in November 2008.

Gomer Pyle: Gomer Pyle is a television character played by Jim Nabors and introduced in the middle of the third season of "The Andy Griffith Show".

Goober Pyle: Goober Pyle is a fictional character in the American TV sitcom "The Andy Griffith Show" and its later sequel series "Mayberry RFD".  He was played by George Lindsey.  Lindsey first read for the part of Gomer Pyle, Goober's cousin, which went to actor-singer Jim Nabors.  The two actors had similar backgrounds; Lindsey was from Jasper, Alabama, while Nabors was from Sylacauga, Alabama.

Buck Young: Buck Young (April 12, 1920 – February 9, 2000) was an American actor who played the role as Sergeant Whipple on the "Gomer Pyle, U.S.M.C." TV series, and Deputy Joe Watson on "The Andy Griffith Show".

Andy Taylor (The Andy Griffith Show): Sheriff Andrew "Andy" Jackson Taylor and in earlier episodes as Cousin Andy by Barney Fife is the major character on "The Andy Griffith Show", an American sitcom which aired on CBS, (1960–1968).  He also appears in the "Gomer Pyle, U.S.M.C." episode "Opie Joins the Marines", made a cameo appearance in the USMC episode "Gomer Goes Home," five episodes of "Mayberry R.F.D." (1968–1971) and the reunion telemovie "Return to Mayberry" (1986).  The character made his initial appearance in an episode of "The Danny Thomas Show" entitled "Danny Meets Andy Griffith."  In the CBS special "The Andy Griffith - Don Knotts - Jim Nabors Show" (1965), Andy and Barney are featured in a musical sketch about their friendship and recreate some classic moments between the characters.  Andy Griffith, as Sheriff Taylor, also has a brief comedy cameo in "Rowan and Martin at the Movies" (1969), a PSA short subject promoting the purchase of U.S. Savings Bonds.  Andy Taylor appeared in all 249 episodes of "The Andy Griffith Show" and was played by comedian and actor Andy Griffith.

Pete Carpenter: Clarence E. "Pete" Carpenter (April 1, 1914 – October 18, 1987) was an American jazz trombonist, musical arranger, and a veteran of television theme song scoring.  After a long career playing the trombone in bands and as a studio musician, Carpenter started working with composer Earle Hagen and writing music for television on shows like "Bewitched" (1964), "Gomer Pyle, U.S.M.C." (1964), and "The Andy Griffith Show" (1966–1967).

Supporting paragraphs: The Best Little Whorehouse in Texas (film) Jim Nabors
Answer: The Best Little Whorehouse in Texas