my $moduleName = "Foo::Bar::$var"; require $moduleName;