in reply to Re^3: Defining global variable in a subroutine
in thread Defining global variable in a subroutine
Eliya,
If you take a look at Re: Accessing hash from within module, which I commented on how to use/update globals in the parent, I think it gives enough information to explain what I'm talking about.
Also remember, it you use 'our' in the child, it creates the global in the parent space, and not in the child's address space. That's why you need to LOCK/UNLOCK the global that you are using.
Good Luck!
"Well done is better than well said." - Benjamin Franklin
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Defining global variable in a subroutine
by dave_the_m (Monsignor) on Feb 22, 2012 at 16:21 UTC | |
|
Re^5: Defining global variable in a subroutine
by Eliya (Vicar) on Feb 22, 2012 at 16:24 UTC | |
by flexvault (Monsignor) on Feb 23, 2012 at 10:14 UTC | |
by choroba (Cardinal) on Feb 23, 2012 at 10:23 UTC | |
by flexvault (Monsignor) on Feb 23, 2012 at 10:30 UTC | |
by choroba (Cardinal) on Feb 23, 2012 at 10:38 UTC | |
| |
by zwon (Abbot) on Feb 23, 2012 at 11:35 UTC |