in reply to use of uninitialized variables??
Difficult to know what's going on with code formatted like that. Please use the code tags - just add <code> and </code> before and after your code fragments.
However, Perl is telling you that on lines 16, 29, 39 and 51 of your program you are trying to access a variable which you haven't previously given a value. It's difficult to help any more as we can't see which lines they are in the fragment which you have posted.
--
|
|---|