I have to redo something which I did a long time ago and I have forgotten the details. My goal is to have my own installation of Perl, install the DateTime module, and then use the DateTime module in my Perl code.

I have done the following commands:

setenv PERLBREW_ROOT /rhome/dotykg/perl5/perlbrew curl -L http://install.perlbrew.pl | bash perlbrew install-patchperl perlbrew install-cpanm perlbrew install perl-5.16.3

All of the above was successful and I currently have the Perl object at this directory path:

/rhome/dotykg/perl5/perlbrew/perls/perl-5.16.3/bin/perl

My first question is where in the above directory path do I perform this command:

cpanm DateTime

Then at the top of my Perl code I assume I need a minimum of the following:

#!/rhome/dotykg/perl5/perlbrew/perls/perl-5.16.3/bin/perl -w use strict; use DateTime;

This is actually my second attempt at this process. After my first attempt, even with a successful build of the DateTime module, the Perl code could not locate the latter module. So I am doing something incorrect somewhere. Thanks in advance for any guidance. Kevin Doty


In reply to Installing DateTime by dotykg

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.