Perl Programming/Keywords/local

Previous: listen Keywords Next: localtime

The local keyword edit

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 edit

  local EXPRESSION

See also edit

Previous: listen Keywords Next: localtime