in reply to Delete/Reinstall Perl
You should be able to resolve this problem, without Draconian action, once you fully understand it.
Use the set command to list the environment-variables, and see if PERL5LIB is among them, and if so, what does it say. It should be a list of directories, separated by colon : characters.
Try cat ~/.bash_profile (notice the period ...) and see if it contains commands to set a value to that variable. If so, type the same command again, minus the word cat, and try again what you did before. If that throws an error, try substituting source for cat. Or, log off and on again.
Try locate Format\.pm to see if the file is (or was ...) anywhere at all, and if so, where.
If you are using packages to maintain your system, try force-reinstalling the package that contains the module that you seek.
A convenient “one-liner” for checking if a module exists is: perl -MDate::Format -e '0;' ... or if you prefer ... perl -e 'use Date::Format;' ... in both cases using single quotes.
The command, perl -V, with a capital V, will produce a lot of information including the current and complete set of directories that will be searched (in order) to find any module. It takes into account the $PERL5LIB setting along with everything else.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Delete/Reinstall Perl
by oldcity13 (Initiate) on Jul 12, 2013 at 17:11 UTC |