in reply to Re: Re: Predeclaration
in thread Predeclaration

People generally predeclare with my to assist with error-checking. If you add the pragma use strict; to the top of your program, all variables have to be declared with my or our before they're used. This helps eliminate errors due to variable name typos.

For example:

use strict; my $typo; $tuypo = "Here's some data: $data"; print $typo;
will produce an error.