http://www.perlmonks.org?node_id=100836


in reply to Variable Scope

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.

--
<http://www.dave.org.uk>

Perl Training in the UK <http://www.iterative-software.com>