Thank you marto! Your output is intriguing. It looks to me like your scripts from CPAN modules are probably all installed by default to /usr/bin/site_perl (sitescript) OR I guess possibly /usr/bin (sitebin). Assuming you have LWP installed what does "which lwp-request" say on your system?

Is there one specific %Config var where cpan clients always put scripts regardless of what it says in EXE_FILES?

Thanks for pointing out the options for INSTALLSCRIPT. I guess that throws a monkey wrench at the idea of reliably finding EXE_FILES in the %Config directories! I wonder if the value of perllocal EXE_FILES reflects a custom value for INSTALLSCRIPT?

For example if you do this:

cpanm --make-args "INSTALLSCRIPT=/opt/mybin" Module::Name
Does perllocal look like this:
EXE_FILES: /opt/mybin/module-name-script
I woke up this morning are realized I could turn off perlbrew to check the values for system Perl on macos (v5.30.3):
bin                       /usr/bin                                                                                            
binexp                    /usr/bin                                                                                            
initialinstalllocation    /usr/bin                                                                                            
installbin                /usr/bin                                                                                            
installscript             /usr/bin                                                                                            
installsitebin            /usr/local/bin                                                                                      
installsitescript         /usr/local/bin                                                                                      
scriptdir                 /usr/bin                                                                                            
scriptdirexp              /usr/bin                                                                                            
sitebin                   /usr/local/bin                                                                                      
sitebinexp                /usr/local/bin                                                                                      
sitescript                /usr/local/bin                                                                                      
sitescriptexp             /usr/local/bin                                                                                      
vendorbin                 /usr/local/bin                                                                                      
vendorbinexp              /usr/local/bin                                                                                      
vendorscript              /usr/local/bin                                                                                      
vendorscriptexp           /usr/local/bin
PS - I missed vendorscript and vendorscriptexp in my test script:
#!/usr/bin/perl -l # Check if all the bin and script dirs in %Config are the same. # Updated to include vendorscript and vendorscriptexp use strict; use warnings; use Config; @_ = qw/bin binexp initialinstalllocation installbin installscript installsitebin installsitescript scriptdir scriptdirexp sitebin sitebinexp sitescript sitescriptexp vendorbin vendorbinexp vendorscript vendorscriptexp/; printf "%-24s %-100s\n", $_, $Config{$_} for @_;

In reply to Re^2: perllocal EXE_FILES and %Config by Anonymous Monk
in thread perllocal EXE_FILES and %Config by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.