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
Indicates that the character set encoding of the caller's context must be inherited. This can be used to inherit the
use utf8setting in the calling context.