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.
In reply to Re^2: Best way to find Environment TEMP
by blazar
in thread Best way to find Environment TEMP
by coldmiser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |