Consider this chapter a collection of useful advanced tips to help you create better Perl programs. Each section will begin with a brief description of why you should use the feature or tool, followed by more detailed examples.
Use my iterator variables with for loops
This technique makes it clear that the iterator variable is scoped, that is, not available outside of the for loop. It also prevents subroutine calls from accidently modifying your iterator variable, and it prevents compile time error messages while using the strict pragma.