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


in reply to Re^3: Who's referencing my variables?
in thread Who's referencing my variables?

I guess your implied advice is: go through all the modules (a few dozen) and make all variables 'our', then probe the symbol table. I'm not yet convinced that this is the best approach.

Replies are listed 'Best First'.
Re^5: Who's referencing my variables?
by Anonymous Monk on Apr 01, 2014 at 15:10 UTC

    I guess your implied advice is: go through all the modules (a few dozen) and make all variables 'our', then probe the symbol table. I'm not yet convinced that this is the best approach.

    Its the easiest and most straight forward approach

    Think of it this way -- you wrote leaky code

    The best approach is a complete code review (effort)

    The next best approach is papering over the leaks (minimum effort possible)