in reply to Re: variable "inheritance"; viral $VERSION
in thread variable "inheritance"; viral $VERSION

Does CPAN track VERSION by compiling the file and checking for $package::VERSION, or does it do the same parsing as ExtUtils::MakeMaker's VERSION_FROM utility?

What I'm trying to avoid is all the CPAN problems to which you allude: all the files in my package remain in lock step through every release (and reflect the version of the overall distribution).

  • Comment on Re: Re: variable "inheritance"; viral $VERSION

Replies are listed 'Best First'.
Re: variable "inheritance"; viral $VERSION
by Abigail-II (Bishop) on Mar 09, 2003 at 22:47 UTC
    Not only would CPAN need to compile the file, but also run it, as $VERSION is typically set at compile time. CPAN is not going to run the entire file.

    What I'm trying to avoid is all the CPAN problems to which you allude: all the files in my package remain in lock step through every release (and reflect the version of the overall distribution).

    Whether your files remain in lock step is not archieved by inheriting $VERSION. What you do lose is the ability to easily check whether your files are in lock step. If each file has its own $VERSION, it's easy to see if there's a mismatch. If they inherit from a single source, there's no way to find out.

    IMO, if you inherit $VERSION, you'd lose one of major reasons to use a version number.

    Abigail