Support PERL_ONLY env var
[gitmo/Mouse.git] / lib / Mouse / Util.pm
index f204edc..abe59b7 100644 (file)
@@ -54,7 +54,7 @@ BEGIN{
 
     our $VERSION = '0.64';
 
-    my $xs = !(exists $INC{'Mouse/PurePerl.pm'} || $ENV{MOUSE_PUREPERL});
+    my $xs = !(exists $INC{'Mouse/PurePerl.pm'} || $ENV{MOUSE_PUREPERL} || $ENV{PERL_ONLY});
 
     if($xs){
         # XXX: XSLoader tries to get the object path from caller's file name