From 2f5fd56d73958e741b13952d5fa0f1e63b678d5b Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Wed, 2 Apr 2003 05:25:19 +0000 Subject: [PATCH] Spread IlyaZ's PERL_CORE detection trick. p4raw-id: //depot/perl@19131 --- ext/Encode/Makefile.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = -- 2.7.4