Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Read registry error

by brap (Pilgrim)
on Oct 29, 2012 at 17:30 UTC ( #1001395=note: print w/replies, xml ) Need Help??


in reply to Read registry error

Hi anaconda_wly,

Just for grins, I tried this on a pretty locked-down Windows 7 machine. The error message I received was Can't find the Windows tips: The system could not find the environment option that was entered. I have no idea what that means.

Knowing that the PC I'm using is locked down, I tried changing the root key to HKEY_CURRENT_USER. With that change, your code worked as posted.

I wonder if Win32::TieRegistry is opening the registry key for read/write access?

Replies are listed 'Best First'.
Re^2: Read registry error
by sundialsvc4 (Abbot) on Oct 29, 2012 at 20:27 UTC
    That appears to be an option ... but read/write could very well be the default.
Re^2: Read registry error
by anaconda_wly (Scribe) on Oct 31, 2012 at 05:22 UTC

    Brap, I'm trying. While I tried a use

    Win32::TieRegistry( Access=>KEY_READ, Delimiter => '/' );

    but get an error "Bareword "KEY_READ" not allowed while "strict subs" in use"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001395]
help
Chatterbox?
[Corion]: Yay. Traditional finance situation averted. Bonds can be quoted in amounts (1_000_000 EUR) or per unit (1 unit). And a traditional error is to trade 2_000_000 piece when you meant to trade 2_000_000 EUR.
[Corion]: (one of my scripts simply catches high amounts and I phone people making that trade, ideally before the payment is due)
[Corion]: The sad thing is that my script sits at the end of the pipeline and can only look at the payments due today or tomorrow basically, while there are many more systems further up in the pipeline
[GotToBTru]: better late than never, I guess
[Corion]: GotToBTru: Sure - there is a long and sad story of many frantic cleanups that led us to implement this notification ;)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2017-03-29 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (347 votes). Check out past polls.