Why doesn't Carp have a $VERSION all it's own? Even in CPAN it is
matched to the version of perl it ships with (like 5.6.1), but other
core modules -- strict, AutoLoader, CPAN, all the ones I've checked so
far -- do? Is Carp special?
I went to the search.cpan.org page for the latest version of Perl
(http://search.cpan.org/~nwclark/perl-5.8.4/) and noted that Carp is
listed as having version 1.02. I then checked my own slightly older
version of Perl (5.8.0 ActiveState binary build 806 for MSWin32), and
noted that Carp.pm has clearly defined:
our $VERSION = '1.01';
So, AFAICT, Carp is not special; it *does* have a version number.
Could you say what leads you to think otherwise? Thanks.
Jim Keenan
: our $VERSION = '1.01';
$ ls Carp.pm
Carp.pm
$ grep -i version Carp.pm
$
Obviously this is a recent addition. No production sites with which I am
familiar are using 5.8 yet.
Correct, our production environment is running perl 5.6.1, and the Carp
module with that distribution does not have a $VERSION defined.
It's not a huge issue, and looks to be addressed in later versions of
perl. We will be moving to 5.8.3 this year as part of a larger
migration project. It just got me curious, is all. Thanks.