The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

caller - inherit pragmatic attributes from the context of the caller

SYNOPSIS

        use caller qw(encoding);

DESCRIPTION

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.