good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
It is hard to justify such code in any serious context.
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, In reply to Re^2: Abandon "our" declarations (was: Re: our scope and packages) (export)
by rir
|
|