in reply to Re^2: standard perl module and BEGIN block.
in thread standard perl module and BEGIN block.
Seriously now, you're right that it does make that section of the code depend on position. Which I don't see as a horrible thing - no worse than a lexically scoped variable. And certainly not in boilerplate initialization code which many people who use it won't expect to understand.
If you're uncomfortable with that fact you can always declare the variables as is usually done. In fact I pointed out that I'd done it so that people could make that choice.
Also I deliberately didn't comment on the mechanics. If I thought that the mechanics required commenting on within the code, then I'd first try to solve that by changing the mechanics, not commenting the code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: standard perl module and BEGIN block.
by BrowserUk (Patriarch) on Aug 16, 2004 at 21:47 UTC | |
by eric256 (Parson) on Aug 17, 2004 at 06:35 UTC | |
by BrowserUk (Patriarch) on Aug 17, 2004 at 10:55 UTC | |
by ikegami (Patriarch) on Jun 12, 2010 at 19:00 UTC | |
by tye (Sage) on Jun 12, 2010 at 16:53 UTC | |
by BrowserUk (Patriarch) on Jun 12, 2010 at 17:31 UTC |