Welcome to the Monastery and the wider Perl world, oldB51. You've made a great start already.

It is likely that my debug tactic will be to print variables at various stages until the problem is found. This is usually easier than a formal debugger anyway.

I too am an advocate of liberal print/warn statements while debugging. However you may be unaware that Perl has its own built-in debugger which can you use at any time should you so wish. It is explained extensively in perldebug. See also the FAQ How do I debug my Perl programs?

I think I’m right in saying neither will in fact install on 64bit Macs. But - if this is the case - why does the installation begin. Surely cpanm knows what system it is trying to install into and should stop the process immediately with a polite message.

It does know the architecture but it doesn't necessarily know that any given module won't install there. That is in the gift of the module author and they may not know either. Many modules were originally written before 64-bit architectures were widely available, for example, and some have not kept pace with such developments. It might also be the case that it's just a bug and needs to be fixed.

Contrarily many modules will bail out early if it is attempted to install them on a platform which is known to be unsuitable. This is most often seen when a non-Perl pre-requisite is missing (a compiler, a system libarary, a third-party tool, etc.). You will probably come across one of these eventually.


🦛


In reply to Re: My Perl journey begins by hippo
in thread My Perl journey begins by oldB51

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.