The normal configuration is that pure Perl modules will go in the "sitelib" directory and XS modules go in the "sitearch" directory. You can have different perl binaries compiled with different configurations-- 32-bit v. 64-bit, single-thread v. multi-threaded, etc. The perl binaries can share the same pure Perl modules, but need to have separate shared libraries, so they are put in separate directories. "Crypt" by itself is not a module, just a directory. Crypt::CAST5_PP is a pure Perl module, but Crypt::CAST5 is not. The very important Crypt::CBC is only available as pure Perl.

You can find out the values of the configuration variables using the Config module:

use Config '%Config'; print "sitearch = $Config{archlib}\n";
From the shell, you can also use the -V option: perl -V:sitearch. -V is handy, you can give it lists or regular expression arguments, and you can eval the output to set shell variables:
perl -V:'site.*' eval `perl -V:'privlib privarch sitelib sitearch'` ls $sitelib/Crypt ls $sitearch/Crypt
That's backquotes on the eval line, you can also use $(  ), which is typographically clearer than backquotes and can be nested.
eval $(perl -V:'prefix version archname') echo $prefix/lib/site_perl/$version/$archname

In reply to Re: 32-64 bits systems maze by Thelonius
in thread 32-64 bits systems maze by carcassonne

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.