in reply to Re: Writing Modules/namespace polution
in thread Writing Modules/namespace polution

Notwithstanding the fact that he doesn't appear to need to export anything -- as pointed out by other posts -- I'm not so sure it's advisable to suggest using @EXPORT very often. I realize a lot of well known and good modules do this, but most of the time, I think it makes more sense to use @EXPORT_OK and let the caller specify what they want to import.

Replies are listed 'Best First'.
Re^3: Writing Modules/namespace polution
by chas (Priest) on Mar 16, 2005 at 17:11 UTC
    Agreed, but aside from the object/non-object mixup which I didn't catch, I interpreted the original poster's comments as indicating that he expected use mymodule; would make the entries in @EXPORT_OK available without explicit package referencing. My misunderstanding, I guess...