Revert TempExtlib ( b46b85376 ) - new Sub::Quote shipped
[dbsrgits/DBIx-Class.git] / xt / extra / lean_startup.t
index df4d898..c5ed8cc 100644 (file)
@@ -43,7 +43,7 @@ BEGIN {
     # Some modules have a bare 'use $perl_version' as the first statement
     # Since the use() happens before 'package' had a chance to switch
     # the namespace, the shim thinks DBIC* tried to require this
-    return $res if $req =~ /^v?[0-9.]$/;
+    return $res if $req =~ /^v?[0-9.]+$/;
 
     # exclude everything where the current namespace does not match the called function
     # (this works around very weird XS-induced require callstack corruption)
@@ -135,7 +135,6 @@ BEGIN {
     Sub::Defer
     Sub::Quote
     attributes
-    File::Spec
 
     Scalar::Util
     Storable