|Perl: the Markov chain saw|
Re: Can I from within a module access variables from the calling program?by kcott (Canon)
|on Oct 25, 2012 at 12:00 UTC||Need Help??|
"Yes, but it is commonly considered bad practice. You can easily access global variables of the main program: $main::foo gives access to $foo in the main program"
I don't see how this ties in with your question but what you claim obviously doesn't work, clearly does: