in reply to Word document email table populater
Code is nice, but could be little modular and hence testable.
Is there any way to get the XXXX.. folder name? That would be handy. See the registry entry HKEY_CURRENT_USER\Identities\account_ID. $lastEmail should be $lastEmailDate and can get the value from a subroutine, as one month earlier or a fixed value (if that is what you need). You are sorting by date, so use Hash in place of Array for storing, to make it more clear. Some command line options could be helpful. Hope that helps. Take it easy.