Front page | perl.perl5.porters |
Postings from June 2009
Re: Detect miniperl?
Thread Previous
From:
Michael G Schwern
Date:
June 7, 2009 18:50
Subject:
Re: Detect miniperl?
Message ID:
4A2C6E5C.5010208@pobox.com
Jan Dubois wrote:
> On Thu, 04 Jun 2009, Michael G Schwern wrote:
>> Is there any way to detect if a program is being run with miniperl
>> other than looking at $^X? MakeMaker needs to know its running with
>> reduced capability.
>
> if (defined &DynaLoader::boot_DynaLoader) {
> # regular perl
> }
> else {
> # miniperl (or statically linked perl without Dynaloader)
> }
Thanks. That's a much more direct check for "no XS loading capability".
--
package Outer::Space; use Test::More tests => 9;
Thread Previous