On Oct 5, 2005, at 9:28 PM, Chris Dolan wrote:
Interesting ideas. Do you envision this as a Build-time feature (i.e.
M::B replaces __VERSION__ with the version number as it copies files
to blib) or a runtime feature (somehow Perl knows to extract the
version number from the ether[1] and autovivify $VERSION)?
Perhaps it would ideally be a packaging-time feature - when "Build
dist" is run, it pours some liquid nitrogen on $VERSION somehow so
it'll be statically frozen from then on, in a simple format extractable
without an eval(). Perhaps something as simple as just:
$VERSION = 2.34;
or
$VERSION = '2.34_56';
$VERSION = eval $VERSION;
for beta versions.
It could even be put in *all* the .pm files if you wanted to, rather
than just in one of them, alleviating the VERSION-less helper-module
problem.
In either case, this sounds like a developer opt-in feature. $VERSION
scraping (or parsing) will likely be our lot for a long, long time
still.
Yeah, absolutely.
-Ken
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
|