Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Conditional loading of module with global exportsby choroba (Cardinal) |
on Feb 22, 2016 at 23:27 UTC ( [id://1155869]=note: print w/replies, xml ) | Need Help?? |
Declaring the variable with our seems to work for me. Check below where the variables are declared. I created the following module:
And this is the code that uses it. Argument processing is in a BEGIN block to happen at compile time, so that @list is populated when if is called:
Try running it as
In Section
Seekers of Perl Wisdom
|
|