caller - inherit pragmatic attributes from the context of the caller
use caller qw(encoding);
This pragma allows a module to inherit some attributes from the context which loaded it.
Inheriting attributes takes place at compile time; this means only attributes that are visible in the calling context at compile time will be propagated.
Currently, the only supported attribute is encoding.
encoding
Indicates that the character set encoding of the caller's context must be inherited. This can be used to inherit the use utf8 setting in the calling context.
use utf8
To install lib, copy and paste the appropriate command in to your terminal.
cpanm
cpanm lib
CPAN shell
perl -MCPAN -e shell install lib
For more information on module installation, please visit the detailed CPAN module installation guide.