in reply to Re^3: Cleaning up unused subroutines
in thread Cleaning up unused subroutines
foo() may or may not be called, depending on @ARGV. This is just a very simple example of the larger problem: subroutines may or may not be called based on conditions that can only be determined at run-time.
The only way to really do this was covered earlier: with a comprehensive test suite and gradual code modification.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Cleaning up unused subroutines
by BrowserUk (Patriarch) on Oct 26, 2007 at 04:38 UTC | |
by Somni (Friar) on Oct 26, 2007 at 13:03 UTC | |
by BrowserUk (Patriarch) on Oct 26, 2007 at 15:07 UTC | |
by Somni (Friar) on Oct 26, 2007 at 15:19 UTC | |
by BrowserUk (Patriarch) on Oct 26, 2007 at 15:43 UTC | |
| |
by blazar (Canon) on Oct 27, 2007 at 12:23 UTC | |
by BrowserUk (Patriarch) on Oct 27, 2007 at 16:51 UTC |