Gas dryer vent install, how close to wall?
Given that the dryer vent pipe typically goes through the wall without any special consideration, touching the wall surface should also be fine. Unlike other combustion appliances, the dryer exhaust is diluted with a great deal of additional air. If it's hot enough to scorch your wall, it's hot enough to scorch your clothes.