Probably you want something like:
if ($^O eq 'MSWin32') { require Win32::OLE; }
Note that $ENV{OSTYPE} is not cross platform.
In reply to Re: conditionally include a module
by GrandFather
in thread conditionally include a module
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |