in reply to Re: How not to use "our"?
in thread How not to use "our"?
I've removed Exporter. Take a look at the Selecting What To Export section in that documentation.And instead you write package name, and sub name to get a value. If you're willing to do that, you can do that with scalars as well, and not need Exporter:
You can even interpolate that way.package Max; our $tiny_text = 200; our $long_text = 1000; package main; print "From main: $Max::tiny_text\n"; print "From main: $Max::long_text\n";
|
|---|