in reply to How to access main package global vars in modules
There are several alternative one line changes that do what you ask, such as:
But none of the above is recommended. You would be much better in most scenarios to make functions.pl a package, and pass lexical variables as parameters to its functions.
|
|---|