in reply to Win32::TieRegistry and Vista

Not that I really know...   just something to ponder over, until other monks are going to come up with better suggestions :)

"The system could not find the environment option that was entered" is the system error message #203, aka ERROR_ENVVAR_NOT_FOUND (personally, I find the latter short form easier to understand - but that's another issue). So, maybe you're trying to access (directly or indirectly) some environment variable, which doesn't exist in that context... for example, how do you construct your $pc?   Or something like that.

OTOH, I've also occasionally seen this message show up under the most ridiculous circumstances, so I could be entirely off-base...

Good luck anyway.

Replies are listed 'Best First'.
Re^2: Win32::TieRegistry and Vista
by Shade (Novice) on Jan 23, 2007 at 00:34 UTC
    Good suggestions...

    I define the machine names within a config file, in an array of hashes. I'm calling $Registry->Connect from within a subroutine, which is called from a loop that pulls the names out of the array. I went back and doubled checked the machine names, and they are correct. I also just double checked that the registry key name didn't change between XPSP2 and Vista, and the key names are the same.

    Fortunately, neither was the issue, and I don't feel too dumb, yet. :) However, that eliminates a really easy fix.