in reply to Namespace/advice for new CPAN modules for Thai & Lao
You could have an 'all' group of names, to be used with something like this:
when you want to import the whole shebang.use Regexp::Thai ':all';
I think it is a little bit cleaner to do it this way, and it might probably a bit easier to manage if you add new features in the future.
Having said that, this may not be so important. The user can always do something like this:
to prevent unwanted imports.use Regexp::Thai (); use Regexp::Thai (the_specific_function_that_I_need);
In the modules that I wrote, I usually only exported automatically only the functions that are absolutely needed for the rest of the module to work properly (for example, the init function), which must be called for any other function of the module to work properly.
But again, these are just my 2-cents, I am really not an expert on this subject.
|
---|