Installing Perl modules from the Linux command line using the cpan
command works fine, such as:
$ cpan [Module]
and after finishing I can see the module’s documentation via:
$ perldoc [Module]
But doing this via cfengine
, which would just automate script the cpan
command (in a shellcommands: list), the module gets installed, but perldoc
will not work for it:
$ perldoc Text::Histogram
No documentation found for "Text::Histogram".*
However, invoking:
$ man Text::Histogram
will work just fine.
Setting a general environment variable for this (such as suggested by the perldoc
man page) doesn't seem feasible as I observe the .pm
files being placed in very diverse places.
Any hints about this?