Senthil Nathan <[EMAIL PROTECTED]> wrote: > im using globals with the keyword "use". > also it worked fine without mod_perl. > > thats what worries now... > i tried ModPerl:;PerlRun in the httpd.conf and see no change in the global > data being used by others.
> so how can i do away with that problem??? instead of use vars qw($foo $bar); do my($foo, $bar); instead. Depending on the complexity of your CGI scripts, you may have to refactor in other places too (such as passing the variables into subroutines that need them, instead of expecting them to have them as a global). It's always a good practice to avoid using global variables unless you absolutely have to... local variables make it easier to reuse bits and pieces of your code elsewhere, as well as giving you the added security of knowing that your data isn't lurking around long after you're done with it. - Tyler