use Win32; $imageFile = Win32::GetFullPathName( $imageFile );