BEGIN { # need this to happen at compile time if ( $^O =~ /some_os_that_does_not_exist/ ) { use SomeOSThatDoesNotExist::Facility; } }