in reply to Modifying/Accessing hash in separate script
In general terms, I do not think that you need to use the our built-in for what you describe.
Not even if you really need a global hash. You can just make a "global" hash by just declaring it with my at the top-level of your program file (outside of any specific lexical scope).
Or do you have several code files, with use or require relations between them?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Modifying/Accessing hash in separate script
by mdskrzypczyk (Novice) on Jul 22, 2015 at 19:22 UTC | |
by Laurent_R (Canon) on Jul 22, 2015 at 20:05 UTC | |
by mdskrzypczyk (Novice) on Jul 23, 2015 at 13:15 UTC | |
by jeffa (Bishop) on Jul 22, 2015 at 19:31 UTC | |
by mdskrzypczyk (Novice) on Jul 22, 2015 at 19:48 UTC | |
by mdskrzypczyk (Novice) on Jul 22, 2015 at 20:00 UTC |