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.
In reply to Re: How to access main package global vars in modules
by philipbailey
in thread How to access main package global vars in modules
by codewalker82
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |