Skip Menu |

This queue is for tickets about the base CPAN distribution.

Report information
The Basics
Id: 28582
Status: resolved
Priority: 0/
Queue: base

People
Owner: Nobody in particular
Requestors: rjbs [...] cpan.org
Cc:
AdminCc:

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



Subject: local sigdie obscures @INC
The message provided by the localized SIG{__DIE__} does not, like the built-in error, provide @INC in it. That means that "use Foo; @ISA = qw(Foo)" will provide better diagnostics if Foo can't be found. -- rjbs
On Tue Jul 31 08:33:11 2007, RJBS wrote: Show quoted text
> The message provided by the localized SIG{__DIE__} does not, like the > built-in error, provide @INC in it. That means that "use Foo; @ISA = > qw(Foo)" will provide better diagnostics if Foo can't be found.
You're referring to this? $ perl -wle 'use base "Foo"' Base class package "Foo" is empty. (Perhaps you need to 'use' the module which defines that package first.) at -e line 1 BEGIN failed--compilation aborted at -e line 1. Yes, it would be nice if it passed through the real message. Very doable.
Fixed in bleadperl change #31853.