Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^4: brian's Guide to Solving Any Perl Problem (@EXPORT_OK++)by JavaFan (Canon) |
on Aug 25, 2010 at 11:27 UTC ( [id://857156]=note: print w/replies, xml ) | Need Help?? |
If the importing module uses an explicit import list, @EXPORT isn't any more evil than @EXPORT_OK is. @EXPORT provides a default list to import. It's up to the user of the module to decide whether to use the default or not. I very seldomly write a module that has an empty @EXPORT and a non-empty @EXPORT_OK. Not providing defaults isn't very friendly in my book.
In Section
Meditations
|
|