in reply to Confusing variable names

No, that's not present in Perl, and it's unlikely that ever will. There are warnings for certain things that might indicate you have made a mistake, for instance the use of unintialized values, or using a package variable only once.

But no warnings for things that might confuse you. That's your own problem. Or maybe, perception. Because if you use both my $y and my @y, it wasn't confusing at the moment you wrote it. And since there's no possibility of actually confusing them - they remain quite distinct variables - Perl will not issue a warning.

And I think it should stay that way. Compilers should warn if there's the possibility of a mistake, but they should not have an opinion about coding style.

Abigail