More CPAN trivia.

The generally-regarded-as-safe way to determine the version of a Module
(as per EUMM, anyway) is:

perl -MModule -e 'print Module->VERSION';

VERSION is provided by UNIVERSAL, so it will always work (even if the
module picked an odd way of declaring its version).  Of course, it could
be overriding VERSION, but hopefully it's not. There isn't actually a
way to get it right every time, but this is the best :)

There was a long discussion about this on perl-qa about a month ago, if
you're interested :)

> What does 
> 
>    perl -e 'use Algorithm::C3; print $Algorithm::C3::VERSION'
> 
> say? 

Regards,
Jonathan Rockway

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to