in reply to how to import a module var
Unless the variable is exported (in which case you can import it with use Module qw($variable)), this is probably a bad idea, because you're accessing a module internal which can change its behaviour at any given time, thereby breaking your code. The module has an interface for a reason, use it. If the module does not give you a specific bit of information that you need, write a patch and add a method. If the module author is not willing to accept your patch, that's a pretty good indicator that there's a better way of doing what you want.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to import a module var
by philcrow (Priest) on Nov 22, 2005 at 14:25 UTC | |
by Perl Mouse (Chaplain) on Nov 22, 2005 at 14:36 UTC |