Hail Noble Monks,

(This is my first post)

I am an engineer, who has decided to write a program in Perl (in other words I am not an experienced coder). I want the program to work on Mac and Windows, which is why I chose Perl, and I am working on the prototype on my Mac (OS X 10.4.10). I have some Mac-specific questions.

I have got to the point when I need to be able to install modules; DateTime in particular. I have attempted an install in terminal, but I dont think it was successful. Here is what I did...

Open terminal Type sudo perl -MCPAN -e shell Input password Type install DateTime

When I try to find DateTime in the finder, it appears in...

usr/local/ActivePerl-5.8/lib/ActiveState-5.8/DateTime.pm
In an earlier attempt I also attempted to install ActiveState.

Odd thing is, when I type perl -v in terminal, it says I have perl version 5.8.6. I note that ActiveState has perl version 5.8.8

Do I have two versions of perl?

Has DateTime arrived at the right place?

Can I write a 'use DateTime;' type of line in my program (program says cant locate DateTime.pm in @INC)?

Can someone provide a step-by-step guide on how the install should be done?

Thanks in advance

20070922 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips


In reply to 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.