Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

No $VERSION for Carp modules

1 view
Skip to first unread message

Steven Hilton

unread,
May 12, 2004, 3:40:25 PM5/12/04
to
I was documenting the list of modules and module versions that we use
in our applications, and noticed that Carp does not have a $VERSION
defined.

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?

Jim Keenan

unread,
May 13, 2004, 1:25:39 PM5/13/04
to
mshi...@yahoo.com (Steven Hilton) wrote in message news:<8dfcd2af.04051...@posting.google.com>...


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

Malcolm Dew-Jones

unread,
May 13, 2004, 3:43:43 PM5/13/04
to
Jim Keenan (jkeen_vi...@yahoo.com) wrote:
: mshi...@yahoo.com (Steven Hilton) wrote in message news:<8dfcd2af.04051...@posting.google.com>...

: 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.

mshiltonj

unread,
May 13, 2004, 5:08:39 PM5/13/04
to
> 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.

0 new messages