in reply to Cleaning up unused subroutines
perl -ple"s[sub\s+(?=\w)][sub XXX_]g" yourscript.pl >junk.pl
Run junk.pl and correct each Undefined subroutine &..... called at ... by removing the XXX_ from the subroutine declarations. Once the script runs again, any sub definitions still carrying the XXX_ prefix are redundant and can safely be removed from yourscript.pl
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Cleaning up unused subroutines
by aquarium (Curate) on Oct 26, 2007 at 03:07 UTC | |
by BrowserUk (Patriarch) on Oct 26, 2007 at 03:45 UTC | |
by Somni (Friar) on Oct 26, 2007 at 04:29 UTC | |
by BrowserUk (Patriarch) on Oct 26, 2007 at 04:38 UTC | |
by Somni (Friar) on Oct 26, 2007 at 13:03 UTC | |
| |
by blazar (Canon) on Oct 27, 2007 at 12:23 UTC | |
|