Perl Security: 5. When using functions, remember... Handling internal varies Whatever variables you use in your function, keep them lexically scoped whenever possible. It will help Perl manage much more efficiently the memory Avoids your function from affecting other functions This one has an easy conclusion: Always use lexically scoped variables, always, everywhere, no excuses..