in reply to Re: How to do a conditional load of a module ?
in thread How to do a conditional load of a module ?

Did you check the documentation of if?
SYNOPSIS use if CONDITION, MODULE => ARGUMENTS;
So it should be something like:
use if $^O eq "MSWin32", Win32API::Registry => qw(:ALL);
HTH

Paul