As documented in if, what comes after the use if is a list (like any other import list). Try e.g. use if $VersionOS eq 'Win', 'Win32::OLE::Const', qw(Microsoft.Word);
In reply to Re: Load module conditionally and export variables
by haukex
in thread Load module conditionally and export variables
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |