Skip Menu |

This queue is for tickets about the Carp CPAN distribution.

Report information
The Basics
Id: 79649
Status: resolved
Priority: 0/
Queue: Carp

Owner: Nobody in particular
Requestors: mst [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Carp::Heavy unsplit can cause really odd errors
Date: Fri, 14 Sep 2012 17:02:43 +0100
To: bugs-Carp [...]
From: Matt S Trout <mst [...]>
Download (untitled) / with headers
text/plain 1.1k
If a user has an updated Carp in a local::lib or similar, and manages to load an old -before- those are applied, they get the vestigial Carp::Heavy and as such some subs aren't defined (short_error_loc being the one my client just got nailed by). i.e. use FindBin qw($Bin); use lib "/home/me/perl5/lib/perl", "$Bin/../lib"; is a failure waiting to happen, because FindBin loads but not Carp/ My suggestion would be, in Carp/, to do a $VERSION check after loading Carp and if it's not the one this was shipped with to complain loudly, something like die "Carp::Heavy from Carp 1.26 loaded but $Carp::VERSION was loaded," ." did you modify \@INC after loading Carp somehow?" unless $Carp::VERSION == 1.26; although I'm entirely open to alternatives. -- Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and a clue Email me now on mst (at) and let's chat about how our Catalyst commercial support, training and consultancy packages could help your team.
Fixed in Carp-1.32, now on CPAN.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to