Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: cpanm --installdeps . cannot install Template::Toolkit

by Anonymous Monk
on Jan 23, 2020 at 15:02 UTC ( [id://11111781]=note: print w/replies, xml ) Need Help??


in reply to cpanm --installdeps . cannot install Template::Toolkit

The Perl toolchain can take a little getting used to, because dependencies are in terms of modules, not distributions, even though it's the distributions that get installed to get the modules. This is actually the right way to do it, because this way you can still find the modules you need, even if the distributions get refactored.

It is usual to name a distribution after the chief module in it, but this is not always done. Your case is particularly confusing because the chief module is Template, but the distribution is Template-Toolkit. Not only that, but there actually is a Template::Toolkit module in the distribution, but it contains no functionality, and no version number.

In this case it seems to me the best thing to do is to depend on the modules whose functionality you are actually using. I'm pretty sure if you just say

requires "Template","3.006";

things will come out the way you want.

Replies are listed 'Best First'.
Re^2: cpanm --installdeps . cannot install Template::Toolkit
by Skeeve (Parson) on Jan 24, 2020 at 08:11 UTC

    Thanks! You are right!


    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-03-28 23:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found