in reply to Modules and crossplatform code

Query the OS name using $^O before requiring the module. See perlvar.