Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 946473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:55:19+00:00 2026-05-15T22:55:19+00:00

At $work, we maintain a set of Perl modules at a central location for

  • 0

At $work, we maintain a set of Perl modules at a central location for easy inclusion via PERL5LIB. As there is a re-installation ahead and we need to provide the modules for both 32 and 64 bit architecture, we are wondering if it’s better to install them into the same directory tree, relying on the $archname subdirectories, or keep the two architectures entirely separate and duplicate each module.

I was not very successful at researching the inner workings of the Perl module lookup process involving $archname, maybe someone can point me in the right direction.

In your experience, what are the pros and cons of the two approaches?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:55:20+00:00Added an answer on May 15, 2026 at 10:55 pm

    From perldoc lib:

    When using use lib LIST;

    For each directory in LIST (called
    $dir here) the lib module also
    checks to see if a directory called
    $dir/$archname/auto exists. If so
    the $dir/$archname directory is
    assumed to be a corresponding
    architecture specific directory and is
    added to @INC in front of $dir.

    lib.pm also checks if directories
    called $dir/$version and
    $dir/$version/$archname exist and
    adds these directories to @INC.

    IMHO, it is more idiomatic – and dare I say, neater – to use the per-architecture subdirectories, like Perl’s standard libraries would.

    However, it night be more straightforward to manage per-architecture-entire-tree of your own libraries, though not by a large margin once you create a few basic tools/scripts to do so.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set some cookies on my WebView to open a browser with
How can I set up remote directories in Git where I can locally push
Is this senerio valid? I have a View to maintain an Item. I have
I need to execute some code after each deserialization is done on a POJO's
I've inherited a medium sized project in which the main (batch) program is fed
What I am trying to do is clone 3 drop-down boxes and add them
I have a cclayer class with invisible button that is the size of the
In my application I have a DataSet that holds tables that are used in
I have been trying to use one View for updating an object and all
I'm trying to add a class to elements clicked on. The elements have several

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.