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:
HEADER1:value HEADER2:value ID:value KEY1:value KEY2:value ... ID:value KEY1:value KEY2:value FOOTER1:value
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:
HEADER1:value HEADER2:value ID:value KEY1:value KEY2:value KEY3:value ID:value KEY2:value KEY1:value KEY3:value ...
and not every record has all the keys:
HEADER1:value HEADER2:value ID:value KEY1:value KEY2:value KEY3:value ID:value KEY3:value KEY2:value ID:value KEY5:value ...
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.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to name a file parsing module for CPAN
by jjhayes84 (Novice) on Jan 09, 2004 at 02:27 UTC | |
by fx (Pilgrim) on Jan 09, 2004 at 10:12 UTC | |
|
Re: Trying to name a file parsing module for CPAN
by flyingmoose (Priest) on Jan 09, 2004 at 14:57 UTC | |
by fx (Pilgrim) on Jan 09, 2004 at 19:07 UTC | |
|
Re: Trying to name a file parsing module for CPAN
by Anonymous Monk on Jan 09, 2004 at 03:35 UTC | |
by fx (Pilgrim) on Jan 09, 2004 at 10:17 UTC |