There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

Modules

locate and a 'use lib' or export directories based on $FindBin::Bin.
locate and a 'use lib' or export directories based on $FindBin::Bin.
Find the executin directory, exported via BIN()
List parent dirs of the given path from curr to root.
locate and a 'use lib' or export directories based on $FindBin::Bin.
stable version of code for older perl installations.