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

  • Home
  • SEARCH
  • 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

We need to be able to simultanously maintain a set of different versions of
I am new to Flex (got assigned to maintain an old project at work)
At work, we are using SVN, CVS, and GIT because there any many projects
I have two Tomcat servers that need to maintain a persistent connection to cut
I have set up a webgrid and it seems to work fine, allowing me
My main div .container is set to overflow:hidden; to maintain 100% height, it nests
In order to maintain the current set of Urls in a project, I have
I work with an application that uses a large set of xml interfaces for
We maintain a medium sized windows application developed in vb/c# .net in work. Still
There are many places in my app that needs to set the UIColor. I

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.