declarator our

Documentation for declarator our assembled from the following types:

language documentation Variables

From Variables

(Variables) declarator our

our variables work just like my variables, except that they also introduce an alias into the symbol table.

module M {
    our $Var;
    # $Var available here 
# Available as $M::Var here.

In order to create more than one variable with package scope, at the same time, surround the variables with parentheses:

our ( $foo$bar );

see also the section on declaring a list of variables with lexical or package scope.