in reply to Private Variables and FastCGI / ModPerl

Coping with Scoping
  • Comment on Re: Private Variables and FastCGI / ModPerl

Replies are listed 'Best First'.
Re^2: Private Variables and FastCGI / ModPerl
by expresspotato (Beadle) on Feb 16, 2010 at 00:22 UTC
    So localizing seems to be thing to do here. There are just too many variables to be localized. I've found that using Devel::Symdump lets me dump all the symbols used in the program.
    $globalthis = 0; $globalthat = 0; require Devel::Symdump; $obj = Devel::Symdump->new(); @array = $obj->scalars; foreach (@array){ print "$_\n"; }
    How can I local everything in @array? I know its probably extremely dangerous, so I will most likely build a difference table between what is in @array without anything loaded and then again with. Any help is appreciated.