A
Andrew Crabb
I'm making a module that I'd like to put into CPAN eventually. The code
does not lend itself to being in one file - for instance, there is a
data dictionary 2,000 lines long that seems it should be in its own
file. Also I'm trying to make it as OO as possible, and there are
subclasses that have no real utility outside of the context of being
used in the main module. So they're extra files, too.
Question: Say my module is called Image::Munge. So my main file is
called Image/Munge.pm. Where do I put the other files - in
Image/Munge/UtilityFile.pm etc? And if my module (class) Image::Munge
uses a utility class UtilityClass, it'd be called
Image::Munge::UtilityClass right? And its file would be
Image/Munge/UtilityClass.pm. But this utility class is not useful on
its own - can I prevent it from being 'visible' so that people do not
inadvertantly try to use it?
Hope I've made this as clear as mud.
Andy
does not lend itself to being in one file - for instance, there is a
data dictionary 2,000 lines long that seems it should be in its own
file. Also I'm trying to make it as OO as possible, and there are
subclasses that have no real utility outside of the context of being
used in the main module. So they're extra files, too.
Question: Say my module is called Image::Munge. So my main file is
called Image/Munge.pm. Where do I put the other files - in
Image/Munge/UtilityFile.pm etc? And if my module (class) Image::Munge
uses a utility class UtilityClass, it'd be called
Image::Munge::UtilityClass right? And its file would be
Image/Munge/UtilityClass.pm. But this utility class is not useful on
its own - can I prevent it from being 'visible' so that people do not
inadvertantly try to use it?
Hope I've made this as clear as mud.
Andy