Recently, the Perl module system has been receiving a major overhaul. CPANPLUS, Module::Build, and the recent MakeMaker refactoring are all examples of this. But one thing that hasn't changed is storage of metadata. Metadata in Perl still consists of setting $VERSION in your module and plugging some values into your Makefile.PL (or Build.PL).

I've recently written a module that could change that, but I'm not sure if I should pursue it.

It's not even in alpha--I haven't actually tried it out--but here's what its metadata would look like:

use Module::Metadata author => 'BRENTDAX', version => ($VERSION=0.01), #compatibility license => 'perl', threads => 'none', thrsafe => 'unknown', depends => { perl => 5.005 #might work in earlier versions };

No fancy attributes or formats involved--just a use line. There isn't even a global or even computer-specific metadata database--it's just there to be extracted. Module::Metadata would know how to extract its own metadata from any module text, somewhat like the $VERSION extraction code that's in half a dozen modules, but more sophistocated and general.

Obviously, to make it work as well as it could I would need cooperation from MakeMaker, Module::Build, and CPAN and PAUSE (to modify the indexing scripts). Is this idea worth pursuing, or is it a total pipe dream?

=cut
--Brent Dax
There is no sig.


In reply to Module::Metadata by BrentDax

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.