Hi, see if:
(not sure about the regex, not a Windows user).use if $^O =~ 'MSWin32', 'Win32::TieRegistry';
Hope this helps!
Update: added quoting to module name, see below
In reply to Re: Conditional use of Win32::TieRegistry
by 1nickt
in thread Conditional use of Win32::TieRegistry
by hilitai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |