BEGIN { # need this to happen at compile time if ( $^O =~ /whatever/ ) { require Win32::OLE; eval { Win32::OLE->import(); }; } }