On Wed, Mar 29, 2000 at 01:59:00PM +0200, Steffen Beyer wrote:
> Dear maintainers of the CPAN namespace,
>
> I would like to "apply" for some additional namespace (2 new modules)
> which I need in order to extend my "Date::Calc" package (oncoming
> version 4.4).
>
> The first module is called "Date::Carp" for obvious reasons:
>
> This module is closely based on Carp.pm from Perl
> 5.005_03. It has been modified to skip all package names
> matching /^Date::/. Thus when your script date.pl calls
> module Date::A, and module Date::A calls module Date::B,
> an exception raised in module Date::B will appear to have
> originated from date.pl where Date::A was called, and not
> in Date::A where Date::B was called, as the unmodified
> Carp.pm would try to make you believe :-). This works
> similarly if Date::B calls Date::C where the exception is
> raised, etcetera.
>
> In other words, this blames all errors in the Date::*
> modules on the user of these modules, i.e., you. ;-)
Is Date::Calc object-oriented ? If not you could fool Carp.pm into
doing what you want by setting @ISA, although that is ugly. It seems
a shame to add a complete new module for this. But if a new module
is require I would suggest a name under Carp::
I suspect the package is quite simple too.
> All "Date::*" modules can use and profit from this module.
So can others
Graham.