6.1. Use and Abuse

The rule of the thumb is that for general scoping, local should 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 my instead.

For more information refer to:


Written by Shlomi Fish