Always
use strict; use warnings; [download]
That will help a lot!
In reply to Re: Identify Unused and Uninitialised variables. by Skeeve in thread Identify Unused and Uninitialised variables. by perlpal