my $objName = "foo"; my $testObj = new $objName();