syphilis has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

USE_LOCALE_NUMERIC is defined in most, but not all, builds of perl.
When it is defined, it appears under "Compile-time options" in the perl -V output.
Is there a %Config::Config key whose value will indicate whether USE_LOCALE_NUMERIC has been defined ? ... or do I need to parse the perl -V output in order to find out ?

Cheers,
Rob
  • Comment on Is there perchance a %Config::Config key that will tell me if USE_LOCALE_NUMERIC is defined in my build of perl ?
  • Select or Download Code

Replies are listed 'Best First'.
Re: Is there perchance a %Config::Config key that will tell me if USE_LOCALE_NUMERIC is defined in my build of perl ?
by Fletch (Bishop) on Mar 18, 2022 at 14:47 UTC

    Maybe looks like it's mentioned in what Config::bincompat_options() returns (which lists "C pre-processor options used when compiling this perl binary"). That's where the output in the perl -V is coming from (I believe . . .).

    DB<3> x grep /USE_LOC/, Config::bincompat_options() 0 'USE_LOCALE_COLLATE' 1 'USE_LOCALE_NUMERIC' 2 'USE_LOCALE_TIME'

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

      Thank you for digging that up for me, Fletch.

      Cheers,
      Rob