perl - How is use local::lib different from use lib? -


i don't understand use local::lib regular use lib doesn't. explain it?

local::lib

  1. defaults ~/perl5 if don't specify directory (while use lib; no-op).

  2. resolves relative paths absolute paths before adding them @inc. (lib adds relative path as-is.)

  3. expands ~ , ~user in directory name.

  4. appends /lib/perl5 directory specify. (so use local::lib '/foo'; equivalent use lib '/foo/lib/perl5';.)

  5. prepends dir/bin path, can use scripts installed local modules.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -