From: Jarkko Hietaniemi Date: Wed, 2 Apr 2003 05:25:19 +0000 (+0000) Subject: Spread IlyaZ's PERL_CORE detection trick. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2f5fd56d73958e741b13952d5fa0f1e63b678d5b;p=p5sagit%2Fp5-mst-13.2.git Spread IlyaZ's PERL_CORE detection trick. p4raw-id: //depot/perl@19131 --- diff --git a/ext/Encode/Makefile.PL b/ext/Encode/Makefile.PL index 2e74fe4..6e4e40c 100644 --- a/ext/Encode/Makefile.PL +++ b/ext/Encode/Makefile.PL @@ -3,7 +3,7 @@ use ExtUtils::MakeMaker; # Just for sure :) unless($ENV{PERL_CORE}) { - $ENV{PERL_CORE} = 1 if ($^X =~ m{\bminiperl[^/\\\]>:]*$}o); + $ENV{PERL_CORE} = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV; } my %tables =