in reply to writing to a users "My Documents" folder

use Win32::GetFolderPath ...

use Win32 qw( CSIDL_PERSONAL ); my $my_documents_path = Win32::GetFolderPath(CSIDL_PERSONAL);