In Javascript you cannot declare same variable twice within the same scope. However, I noticed that I can do that in Perl. use strict; my $a = 2; print "a val is $a\n"; my $a = 10; print "a val is $a\n";
My question is. How can I put a 'seat-belt' as to tag this kind of inadvertent behavior as unacceptable? When I use, 'use warnings' pragma, it warns me. Is there anything that would probably raise a compile/run-time error and fail at redeclarations of variables in Perl? -- Rex -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]