< Perl Programming < Keywords
The local keyword
The 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
local EXPRESSION
See also
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.