On Thu, 31 Mar 2005 02:07:48 -0800, Michael G Schwern <[EMAIL PROTECTED]> wrote:
> On Thu, Mar 31, 2005 at 10:49:48AM +0100, Nicholas Clark wrote:
> > Does the indexer pass the META.yml file?
> > If so, is it sensible for that to have the ability to carry version numbers
> > for the indexer's benefit, for the cases where the indexer finds a version
> > of undef. (Or at least, have "only use for undef ${VERSION}s" as one
> > option.)
>
> I would do it the other way around. If there's a version entry for a .pm
> file in the META.yml use that and don't bother with the .pm scan heuristics.
> The META.yml is more reliable (if the data is there).
>
>
> > It can be written by the user (in this case clkao) before upload from the
> > version numbers in the .pm files, which keeps things consistent and avoids
> > code running in the indexer. It avoids more perl code parsing regexps, and
> > seems to give far more flexibility.
>
> I definately like this vs Yet Another Magic Global To Parse.
The only thing is the META.yml isnt available post install which is
often when people want to be able to do version checks. I agree in
principle that parsing for a special variable is yuky, but it does
seem to have some positive features.
Just an idea anyway.
Yves
--
perl -Mre=debug -e "/just|another|perl|hacker/"