Perl: the Markov chain saw | |
PerlMonks |
Re: Can I from within a module access variables from the calling program?by kcott (Archbishop) |
on Oct 25, 2012 at 12:00 UTC ( [id://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
|
|