in reply to variable "inheritance"; viral $VERSION
The point of $VERSION is to document what version of the code you have. When the $VERSION of one package reflects the version of a file appearing elsewhere you make it even easier for $VERSION to not represent what it is supposed to.
Why do you want a $VERSION with these properties?
If you want to do something so counterproductive, you certainly can. One appropriately silly way is to create a module named "am.pm" with a method named "I" which loads a module, inherits from it, and sets $VERSION. Then in every module you only need:
The implementation of am::I is left as an exercise for the reader.package Bar; use am; I am "Foo"; ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: variable "inheritance"; viral $VERSION
by amackey (Beadle) on Mar 09, 2003 at 03:12 UTC | |
by Anonymous Monk on Mar 09, 2003 at 03:25 UTC | |
by amackey (Beadle) on Mar 09, 2003 at 04:37 UTC | |
by Anonymous Monk on Mar 09, 2003 at 16:57 UTC |