Chas. Owens wrote:
On Thu, Mar 20, 2008 at 1:13 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote:
Chas. Owens wrote:
First off, don't do that. Messing around with another package's
variables ties you to that version of the module and is bad juju.
Not sure I understand how the OP's question motivates that remark.
Packages are normally used to implement modules. Modules are discrete
pieces of code that should not depend on the internal workings of
other modules or the scripts that use them. By modifying a variable
in another package the OP is breaking the encapsulation that packages
are there to provide. While it can be done it is an incredibly bad
idea.
It's not unusual that module authors give the users the opportunity to
alter one or more package variables. In the light of that, I can't help
thinking that you exaggerate a little. ;-)
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/