Pass the variable into the constructor for the object that needs it then. Besides, a little refactoring up front to add such a facility rather than hacking it in is almost always worth while.
In reply to Re^3: Using variables in top level script inside the perl modules
by GrandFather
in thread Using variables in top level script inside the perl modules
by alih110
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |