|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: Re: Re: Sharing Global variables between scriptsby gjb (Vicar) |
| on Apr 16, 2004 at 22:40 UTC ( #345899=note: print w/ replies, xml ) | Need Help?? |
|
Thanks to a short CB exchange I now see what you have in mind. You're using a system call to execute TAZ.pl from within Dispatcher.cgi.pl. So yes, the variables still exist, but unfortunately you can't access them from within into a function and call that from within Dispatcher.cgi.pl by directly including it in that file. The advantage is that you can make $project et al. parameters of that function which is much cleaner. You can also put that function into a module and load it with use. Hope this helps, -gjb-
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||