2) why are we fully-qualifying the @ISA and @EXPORT arrays here
For one thing, it makes it easy to insert a "use strict;" line immediately after the package statement, which is often a good idea.
Also for 1), as noted elsewhere, each file serves as a separate lexical scope so the package declaration from Exporter doesn't "spill over" into the calling package. And for 3), there's no reason to avoid "use" -- either "use" or "require" would be fine in this context.
In reply to Re: packages and Exporter
by simonm
in thread packages and Exporter
by MatthewFrancis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |