Hi All. I have this module on CPAN, Data::ParseBinary.now I want to add a library of pre-prepared format. For example, a parser/builder for BMP files.
The question is, how do I call it? some options that I though about:have module named Data::ParseBinary::lib::GraphicsBMP that export function named GetGraphicBMP, or a variable $GraphicBMP. maybe I shoud skip the "lib" level, and mass all the files under the same directory, creating a Data::ParseBinary::GraphicsBMP module. another possibility is to make a Data::ParseBinary::lib module, that export function GraphicBMP().
And final option is to make the main module to export a function, say
ParseLibrary, and let users do:
$parser = ParseLibrary("Graphic-BMP");
or something like that. or maybe:
$parser = ParseLibrary->Graphic->BMP;What do you say? What would you have done? Shmuel.
