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.
In reply to Re: how to import a module var
by tirwhan
in thread how to import a module var
by rianne809
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |