in reply to packages and Exporter
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: packages and Exporter
by xenchu (Friar) on Dec 05, 2003 at 13:37 UTC | |
by adrianh (Chancellor) on Dec 05, 2003 at 13:57 UTC |