in reply to Re: Abandon "our" declarations (was: Re: our scope and packages) (export)
in thread our scope and packages
This is written to be an object method but it effects the object's package namespace not the object.
This is code that should not be applied to mature code since the My::Config module needs be invaded and all the client code needs to be altered to use it. If there is already a My::Config::import function, it would be better to change the lexicals to package variables inside My::Config.
If writing new code, such misuse of lexicals is perverse. ... That is the thing I like about it. Ahh.
Be well,
rir
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Abandon "our" declarations (was: Re: our scope and packages) (export)
by tye (Sage) on Aug 30, 2008 at 06:21 UTC |