Indeed. The vars and subs pragmas affect packages, not files. Their effects can even span files, if more than one file use the same package.
Since imported variables aren't subject to use strict, and imported subs can override core functions, vars and subs simply export new vars and subs (respectively) into the caller's package.
In reply to Re^14: the "our" declaration ?!! (special vars)
by ikegami
in thread the "our" declaration ?!!
by perlpal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |