The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use ExtUtils::MakeMaker;

my $core = grep { $_ eq 'PERL_CORE=1' } @ARGV;

WriteMakefile(
    NAME => 'Safe',
    VERSION_FROM => 'Safe.pm',
    INSTALLDIRS => ($] < 5.011 ? 'perl' : 'site'),
    ($core || $] >= 5.011) ? () : (INST_LIB => '$(INST_ARCHLIB)'),
);