Difficult to know without seeing the code, but I'd guess that you either need to declare it as a package variable (with use vars or our) or a lexical variable at the file level (using my).
Or you could pass it as a parameter to the fumctions where it is needed.
--Perl Training in the UK <http://www.iterative-software.com>
In reply to Re: Need some help with a dodgy variable
by davorg
in thread Variable Scope
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |