Think about Loose Coupling | |
PerlMonks |
Trying to name a file parsing module for CPANby fx (Pilgrim) |
on Jan 09, 2004 at 01:22 UTC ( [id://319997]=perlquestion: print w/replies, xml ) | Need Help?? |
fx has asked for the wisdom of the Perl Monks concerning the following question: I want to release a module to CPAN. My module parses a file containing records and returns one object/hash/doesn't-matter-in-this-context per record. Each record contains one or more key:value pairs. Each line of the file contains only one key:value pair. My problem is that I don't know if this style of file has a particular name and therefore I cannot name the module :) In case it matters, an example of such a file may look like:
so each record, in this case, has an ID, a KEY1 and a KEY2. In real life, however, it is more complicated than that. Each record always has an ID, and always starts with an ID in the file (this is how I can separate the records out). However, there are around 10 different KEYs. In each record, the KEYs may appear in a different order:
and not every record has all the keys:
So, what should I call my module? File::Parser::Something? Something::Parser? Parser::Something? What should the Something be? (Please note that I am not asking for solutions as to how to parse the file and return the records - I have already done this. I am purely asking about the module's potential name.)
Back to
Seekers of Perl Wisdom
|
|