in reply to Odd WMI situation
Corion's comment about using multiple modules is a sensible one, as that will avoid inadvertently calling windows code on linux and so forth.
My only real comment is that the calling module can use the if pragma to control which is called. For example:
use if ($^O =~ /MSWin32/i), 'Some::Windows::Module';
|
|---|