On Apr 6, 2004, at 4:35 PM, Randy W. Sims wrote:
I can't remember. Is this carried out before or after requirements processing in M::B? I ask because it's possible that version.pm is not present on perl < 5.8... Well, that's a minor issue.
Yeah, I don't think that will make any difference here - since it's in an eval() block, it will fail silently if version.pm isn't installed and it's not needed. It will fail verbosely if version.pm isn't installed and is *is* needed. At least, that's the intent.
If there is any way possible, I wish we could find a way to eliminate $VERSION hacks. I really don't know enough about the issues involved, but can't we scan the whole file recording every occurence of $VERSION (noting that there can be multiple packages in a file), and run it through a few rules to come up with an educated (probabilistic) guess?
I think the line between "$VERSION hacks" and "an educated (probabilistic) guess" is a little blurry. ;-)
-Ken
