Good question. When you use
local::lib , you can install the modules through
CPAN User specific in this directory. Suppose you choose
sudo as your approach, you are installing global modules.
This is similar to installing Node.js through npm . When you install a module with npm install -g <Modul> , its global is installed, and you can use it everywhere. But with this -g flag, it is only available in your current directory.
About the same here, except that you choose the standard installation method for CPAN Modules.
user1558455
source share