http://www.perlmonks.org?node_id=739341

sweetblood has asked for the wisdom of the Perl Monks concerning the following question:

It's been quite sometime that I've written any perl code for a windows system, but I need to create an excel file on someones pc. I'd like to just put the file in their "My Documents" directory, I thought that would be easy, but I'm finding otherwise. Since I don't know which user might be running my script I can't simply "hardcode" the path. I know there must be someway to point to it but I'm running out of ideas.

Sweetblood