in reply to Re: How do I access an array in a Module?
in thread How do I access an array in a Module?
UPDATE: On further thought, notice that constants are functions, not scalars or arrays (which is why you can't interpolate them). Thus, while you can probably export them using Exporter, it's a function (hence must be exported as a bareword, or with preceding &), not an array, that you'll be exporting. As others have mentioned, it's probably more straightforward just to make it a package variable (with our) so that you can export it directly.
|
|---|