Skip Menu |

This queue is for tickets about the Class-Method-Modifiers CPAN distribution.

Report information
The Basics
Id: 46945
Status: resolved
Priority: 0/
Queue: Class-Method-Modifiers

People
Owner: Nobody in particular
Requestors: perl [...] david-raab.de
Cc:
AdminCc:

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



Subject: All Tests failed
All Tests failed and the module can't installed. The problem is simple. There are calls to "Carp::*" without loading the module Carp. Add just an "use Carp" to "lib/Class/Method/Modifiers.pm" and all tests works.
From: perl [...] david-raab.de
On Mo. 15. Jun. 2009, 05:15:13, SidBurn wrote: Show quoted text
> All Tests failed and the module can't installed. The problem is simple. > There are calls to "Carp::*" without loading the module Carp. > > Add just an "use Carp" to "lib/Class/Method/Modifiers.pm" and all tests > works.
It seems that this only fails on Perl 5.10.0 and a "require Carp" in a do { ... } does not work. A "use Carp qw();" at the beginning would be better. That doesn't import the functions in the namespace and it works with Perl 5.10.0
From: perl [...] david-raab.de
It even work if you just adds parenthesis to the function Call. This works under Perl 5.10.0 Show quoted text
> ... do { > require Carp; > Carp::confess("asd"); > }
This fails under Perl 5.10.0 Show quoted text
> ... do { > require Carp; > Carp::confess "asd"; > }
seems like a Perl bug.
Ohh, I'm again. This is no bug in Perl 5.10.0 A Show quoted text
> require Carp; > Carp::confess "warning";
should itself not work under Perl 5.8. Because the require is at runtime, the parsing is compile time. And at compiletime Perl does not knew anything about "Carp". But it works in Perl 5.8.8 because the version of "warnings" loads "Carp" at compile time. In Perl 5.10.0 Carp don't get loaded bei "warnings", and then it fails.
Subject: Re: [rt.cpan.org #46945] All Tests failed
Date: Mon, 15 Jun 2009 11:35:45 -0400
To: bug-Class-Method-Modifiers [...] rt.cpan.org
From: Sartak <sartak [...] gmail.com>
On Mon, Jun 15, 2009 at 8:58 AM, David Raab via RT<bug-Class-Method-Modifiers@rt.cpan.org> wrote: Show quoted text
>       Queue: Class-Method-Modifiers >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46945 > > > Ohh, I'm again. > This is no bug in Perl 5.10.0 > > A
>> require Carp; >> Carp::confess "warning";
> should itself not work under Perl 5.8. Because the require is at > runtime, the parsing is compile time. And at compiletime Perl does not > knew anything about "Carp". > > But it works in Perl 5.8.8 because the version of "warnings" loads > "Carp" at compile time. In Perl 5.10.0 Carp don't get loaded bei > "warnings", and then it fails. >
Ahh makes sense. Thanks for looking into it! 1.04 released. Shawn