Literary sourcesThe primary literary influence on film noir was the hardboiled school of American detective and crime fiction, led in its early years by such writers as Dashiell Hammett (whose first novel, Red Harvest, was published in 1929) and James M. Cain (whose The Postman Always Rings Twice appeared five years later), and popularized in pulp magazines such as Black Mask.