The Tutorials section has Modules: Hot to Create, Install and Use, which should bring you closer to your goal.

Basically, you have to decide which Perl will be your "development Perl". I recommend not to use the Perl that came with your operating system (Perl 5.8.6), because system utilities might depend on the exact versions of modules installed there and breaking the system Perl might mean breaking those utilities too.

You can set up your path environment variable ($ENV{PATH}) so it finds the ActiveState Perl first or you can be explicit about which Perl to invoke by setting up an alias to ActiveState Perl (which is what I recommend).

Either way, you should then install the Perl modules by using the ActiveState Perl so the modules get installed to ActiveState Perl and not your system Perl:

/usr/local/ActivePerl-5.8/bin/perl -v # should print 5.8.8 sudo /usr/local/ActivePerl-5.8/bin/perl -MCPAN -eshell # will then install to your AS Perl

A quick check to see whether a module is installed for a version of Perl is:

perl -MDateTime -e1 # or more general perl -MSome::Module::Name -e1

If that runs without a failure, DateTime (or Some::Module::Name) is installed.


In reply to Re: Lost in Mac OS X by Corion
in thread Lost in Mac OS X by Perrmoss

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.