Perl Programming/Keywords/local
The local keyword
editThe local keyword modifies the listed variables to be local to the enclosing block, file, or eval. It is doing the same as my. If EXPRESSION consists of more than one element, it must be placed in parenthesis.
With delete local EXPRESSION, the deletion of an array/hash element is made local to the current block.
Syntax
edit local EXPRESSION