Have Carp respect CORE::GLOBAL::caller if it exists
authorDavid Golden <dagolden@cpan.org>
Wed, 4 Nov 2009 22:33:11 +0000 (17:33 -0500)
committerDavid Golden <dagolden@cpan.org>
Fri, 6 Nov 2009 11:32:47 +0000 (06:32 -0500)
commit45a2d9782bd1c90e53c52dacd30d9b185db62239
treeb64248cb575c02053066e2fb266401869bfe9698
parent406ca277873a56e20923a72ee65ea50159954a30
Have Carp respect CORE::GLOBAL::caller if it exists

Carp frequently gets loaded very early, before tools that want to
override caller().  Previously, caller() was only in Carp::Heavy,
which was only loaded on demand (thus after any CORE::GLOBAL::caller
override).  This patch unbreaks anything expecting the old behavior.
lib/Carp.pm