http://www.perlmonks.org?node_id=1203304


in reply to Re^2: Conditional use of Win32::TieRegistry
in thread Conditional use of Win32::TieRegistry

Sorry, missed quoting the module (necessary if no args provided, like use if CONDITION, MODULE => ARGUMENTS;)

Should be:

use if $^O =~ 'MSWin32', 'Win32::TieRegistry';
... but I'm sure you saw that in the doc I linked to, right?


The way forward always starts with a minimal test.