Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Perl Programming/Keywords/state

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Perl stat study Keywords The state keyword state declares a lexically scoped variable like my, but variables declared with state will never be reinitialized If the variable list VARIABLES of state has more than one element, the list has to be placed in brackets. In such a list, undef can be used as a placeholder. If more than one state with the same name are declared within the same lexical scope, Perl issues a warning, as it is the case with multiple declarations, but they are seen as redundant. state variables can only be used with the use feature "state" pragma, unless it is written fully as CORE::state. Syntax state VARIABLES state TYPE VARIABLES state VARIABLES : ATTRIBUTES state TYPE VARIABLES : ATTRIBUTES See also Perl stat study Keywords