in reply to Identify Unused and Uninitialised variables.
Perhaps the ideas in these nodes will prove helpful: