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.)


In reply to Trying to name a file parsing module for CPAN by fx

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.