On 2/15/12 11:17 AM, David E. Wheeler wrote:
Some might find it a bit annoying, but it’s probably the safest way
to manage Perl module versions. The second way to do it is lazier:
Just put this line in every Perl module in a distribution:
require Lucy; our $VERSION = eval $Lucy::VERSION;
And yes, it has to be on one line so that Module::Build will parse
out the one line and eval it. I think this would be safe, though I
don’t know if you want to load Lucy.pm in every file.
+1 to that idea. Lucy is mostly XS with pro forma .pm files so 'use
Lucy' is implicit in every Lucy::* class already.
--
Peter Karman . http://peknet.com/ . [email protected]