in reply to Re: Adding "sub import{}" to my module makes global symbols require an explicit package name
in thread Adding "sub import{}" to my module makes global symbols require an explicit package name
Thank you both for your replies. I now have it working with export_to_level, though not using it exactly as you described.
While my use statement was:
use OddEffectOfImportTest;the following worked fine.
OddEffectOfImportTest->export_to_level(1, @_);... but changing the use statement to:
use OddEffectOfImportTest xxx => 6;... makes it fail, albeit with a different error.
All of the next three work
OddEffectOfImportTest->export_to_level(1); OddEffectOfImportTest->export_to_level(1, $_[0]); OddEffectOfImportTest->export_to_level(1, $_[0], @EXPORT);I plan to use the second one.
If you think I'm missing something fundamental, please do follow up. Otherwise thank you for your invaluable help.
Barrie
|
|---|