in reply to Re: CGI scoping questionin thread CGI scoping question
See here regarding mod_perl and using variables in subroutines.