Try putting our $Registry; as the first thing inside the if ($WINDOWS) (untested and works).
And BTW, this question has been asked before: Conditional use of Win32::TieRegistry
In reply to Re: how do I use Win32::TieRegistry in a multi-platform program?
by haukex
in thread how do I use Win32::TieRegistry in a multi-platform program?
by perltux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |