in reply to Re^2: Can I from within a module access variables from the calling program?
in thread Can I from within a module access variables from the calling program?
Use of uninitialized valueOh, I see. You were probably not following the whole conversation in the ChatterBox. If you are not mentioning the variable in a subroutine in the package, the code is executed before you assign any value to the variable in main::. You have to assign the value in a BEGIN block in order to be accessible from within the top level of the package.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can I from within a module access variables from the calling program?
by HJO (Acolyte) on Oct 25, 2012 at 13:07 UTC | |
|
Re^4: Can I from within a module access variables from the calling program?
by HJO (Acolyte) on Oct 25, 2012 at 13:31 UTC | |
by choroba (Cardinal) on Oct 25, 2012 at 13:33 UTC | |
by HJO (Acolyte) on Oct 25, 2012 at 13:40 UTC | |
by choroba (Cardinal) on Oct 25, 2012 at 13:45 UTC | |
by HJO (Acolyte) on Oct 25, 2012 at 13:55 UTC |