in reply to Module Loading via Exporter doubt.
- There usually isn't any need for using Exporter in an OO module.
- You can use use base 'Exporter'; instead of the 2 lines. Just use Exporter; will not set up the inhertance of exporter. The normal use of Exporter is that your module inherits the import() method from it, even if the rest of the modules usually isn't OO.
- You need to setup the @EXPORT, @EXPORT_OK and/or %EXPORT_TAGS package variables in order to export anything. Exporter's import() method will use those to determine what to export when your module is use()d. This is explained in the Exporter documentation.
|