Firstly,
Welcome to the Monastery, please read the
PerlMonks FAQ and
How do I post a question effectively? if you have not already done so. Secondly, are you using a module here? You tell us that none of your approaches are working, are you receiving errors? This does not look like a complete script. Have you seen the
Win32::TieRegistry module?
Martin