Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Is there perchance a %Config::Config key that will tell me if USE_LOCALE_NUMERIC is defined in my build of perl ?

by syphilis (Archbishop)
on Mar 18, 2022 at 12:18 UTC ( [id://11142215]=perlquestion: print w/replies, xml ) Need Help??

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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11142215]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found