Green’s Dictionary of Slang

learn a new way v.

of a heterosexual man, to turn to homosexuality.

[US]G.V. Higgins Cogan’s Trade (1975) 7: Guy’s liable to learn a new way, he’s not careful [i.e. in prison].