in reply to [solved] File::Spec tmpdir() is behaving wrongly in Windows7

Can't reproduce your problem w/Win7 and ActiveState's ...perl 5, version 16, subversion 2 (v5.16.2) built for MSWin32-x86-multi-thread:

C:\ww>set TMPDIR=C:\Temp C:\C:\ww>set TEMP=C:\Temp C:\ww>>perl -MFile::Spec -e "print File::Spec->tmpdir();" C:\ww\AppData\Local\Temp C:\ww>>perl -MFile::Spec -e "print $File::Spec::VERSION;" 3.39_02
If I've misconstrued your question or the logic needed to answer it, I offer my apologies to all those electrons which were inconvenienced by the creation of this post.