Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

perl compile time options

by dheffx (Initiate)
on May 26, 2020 at 18:12 UTC ( [id://11117303]=perlquestion: print w/replies, xml ) Need Help??

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

Hi,

We currently use 5.18.4 in production but as we move from Centos 6 -> Amazon Linux 2 there is a desire to bring our version of Perl up to date along the way. When I am building 5.30.2, I notice the compile time options by default are different than the ones used for the 5.18.4 package. I could not find any useful documentation on the Perl compile time operators. Am I just missing some documentation on these? If so a pointer in the right direction would be appreciated. If not, there are two in particular that were used for 5.18.4 but not 5.30.2 that I am having trouble digging up what they actually do: PERL_HASH_FUNC_ONE_AT_A_TIME_HARD and PERL_SAWAMPERSAND. Would appreciate some help understanding the impact of these two flags.

Thanks!

Replies are listed 'Best First'.
Re: perl compile time options
by haukex (Archbishop) on May 26, 2020 at 18:38 UTC
    I could not find any useful documentation on the Perl compile time operators.

    A lot of that is in INSTALL. The rest you'll have to grep the source code for; the pod/perl*delta.pod files also often contain useful information.

    PERL_HASH_FUNC_ONE_AT_A_TIME_HARD

    That's one of the hash functions (at least according to perl5180delta, I can't find many references in the source itself), and you can see some more options if you search for "PERL_HASH_FUNC" in INSTALL. However, unless you have a specific reason to change this from the default, I'd recommend sticking with the default.

    PERL_SAWAMPERSAND

    I believe this has to do with the performance issues that $& suffered from before Perl 5.20. According to perl5200delta, "The previous behaviour can still be enabled by running Configure with -Accflags=-DPERL_SAWAMPERSAND." So again, unless you have a very specific reason for enabling this, I'd suggest just leaving it at the default.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-03-29 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found