From the docs:
An "our" declaration declares a global variable that will be visible across its entire lexical scope, even across package boundaries.
Note that separate files each do have their own lexical scope...
Personally - in the few cases that I want to use global variables - I refer to them fully qualified ($Inst::make_AR_1 in this case). The additional typing required every time make me rethink whether I really want to have the variable global :)
In reply to Re: How to declare and use global variables
by almut
in thread How to declare and use global variables
by alih110
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |