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';In reply to Re: Odd WMI situation
by swl
in thread Odd WMI situation
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |