On Thu, Mar 31, 2005 at 09:36:00AM +0200, demerphq wrote:

> Perhaps the solution is to define a new "special variable"
> $VERSION_FROM and then make the version scanning logic check for
> 
>   /$VERSION_FROM\s*=\s*(["'])((?:(?!\1).)+)\1/
> 
> if the indexer sees such a variable it then opens $1 and scans it for
> a $VERSION or another $VERSION_FROM.
> 
> That way it should be possible to say something like
> 
>  $VERSION_FROM = "version.pl"
> 
> in all the files in a distro and then the indexer would find it.

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

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.

Nicholas Clark

Reply via email to