|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Can I from within a module access variables from the calling program?by kcott (Parson) |
| on Oct 25, 2012 at 12:00 UTC ( #1000835=note: print w/ replies, xml ) | Need Help?? |
|
G'day HJO, "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:
-- Ken
In Section
Seekers of Perl Wisdom
|
|