in reply to Re^4: Perl Errors
in thread Perl Errors

That's not the lesson!

use strict; and use warnings; will help you by identifying mistakes such as declaring a variable twice (in the same scope). The cure is to make sure your variables are declared ONLY ONCE unless there is some special and very good reason for doing otherwise; a situation you're not apt to encounter until you're a very sophisticated and knowledgeable coder.