"Perl for Perl Newbies" - Part 5 - Good Programming PracticesThe local keywordUse and Abuse

6.1. Use and Abuse

The rule of the thumb is that for general scoping, localshould not be used instead of my, which is safer and better. You may still encounter some code using local in the wild, but assuming you need to maintain it, this code should be revamped to use myinstead.

For more information refer to:

Written by Shlomi Fish