in reply to Re: Best way to find Environment TEMP
in thread Best way to find Environment TEMP

have you considered File::Temp?

Quite a precious module but aimed at a task that's likely to be orthogonal to the OP's. In fact he may even want to use his $TempPath in conjunction with F::T to create temporary files there. Of course File::Spec's tmpdir() gets closer to the original task and F::T uses it behind the curtains for reasonable defaults.