Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: My Perl journey begins

by hippo (Bishop)
on Aug 18, 2022 at 10:47 UTC ( [id://11146222]=note: print w/replies, xml ) Need Help??


in reply to My Perl journey begins

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.


🦛

Replies are listed 'Best First'.
Re^2: My Perl journey begins
by oldB51 (Sexton) on Aug 18, 2022 at 11:08 UTC

    Thanks hippo for the useful background information. The two debug links are now on my…ever growing..list. Many thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11146222]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-26 06:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found