Skip Menu |

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

Report information
The Basics
Id: 72345
Status: resolved
Priority: 0/
Queue: Class-Load

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

Bug Information
Severity: Unimportant
Broken in: 0.12
Fixed in: 0.13



Subject: uninitialized warning when Class::Load::XS is not installed
I get the following uninitialized warning with Class::Load v0.12 when I don't have Class::Load::XS installed. Use of uninitialized value $@ in concatenation (.) or string at /usr/local/share/perl/5.12.4/Class/Load.pm line 34.
Subject: Re: [rt.cpan.org #72345] uninitialized warning when Class::Load::XS is not installed
Date: Thu, 10 Nov 2011 15:33:35 -0600 (CST)
To: "Mateu X. Hunter via RT" <bug-Class-Load [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Thu, 10 Nov 2011, Mateu X. Hunter via RT wrote: Show quoted text
> I get the following uninitialized warning with Class::Load v0.12 when I > don't have Class::Load::XS installed. > > Use of uninitialized value $@ in concatenation (.) or string at > /usr/local/share/perl/5.12.4/Class/Load.pm line 34.
I can't reproduce this (with Perl 5.14.2 or 5.12.3). -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/
Subject: Re: [rt.cpan.org #72345] uninitialized warning when Class::Load::XS is not installed
Date: Thu, 10 Nov 2011 15:34:28 -0600 (CST)
To: "Mateu X. Hunter via RT" <bug-Class-Load [...] rt.cpan.org>
From: Dave Rolsky <autarch [...] urth.org>
On Thu, 10 Nov 2011, Mateu X. Hunter via RT wrote: Show quoted text
> I get the following uninitialized warning with Class::Load v0.12 when I > don't have Class::Load::XS installed. > > Use of uninitialized value $@ in concatenation (.) or string at > /usr/local/share/perl/5.12.4/Class/Load.pm line 34.
Thinking a bit more, this may have something to do with Try::Tiny. What version of that module do you have installed? I have 0.11. If you have an older version, can you try upgrading? -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/
Subject: Re: [rt.cpan.org #72345] uninitialized warning when Class::Load::XS is not installed
Date: Thu, 10 Nov 2011 16:19:52 -0700
To: bug-Class-Load [...] rt.cpan.org
From: "Mateu X. Hunter" <hunter [...] missoula.org>
I have the same version of Try::Tiny, 0.11. Maybe it's due to my particular version of Perl. 2011/11/10 autarch@urth.org via RT <bug-Class-Load@rt.cpan.org> Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=72345 > > > On Thu, 10 Nov 2011, Mateu X. Hunter via RT wrote: >
> > I get the following uninitialized warning with Class::Load v0.12 when I > > don't have Class::Load::XS installed. > > > > Use of uninitialized value $@ in concatenation (.) or string at > > /usr/local/share/perl/5.12.4/Class/Load.pm line 34.
> > Thinking a bit more, this may have something to do with Try::Tiny. What > version of that module do you have installed? I have 0.11. If you have an > older version, can you try upgrading? > > > -dave > > /*============================================================ > http://VegGuide.org http://blog.urth.org > Your guide to all that's veg House Absolute(ly Pointless) > ============================================================*/ > >
I've faced a warning message on a box without the XS module. When looked at the code I saw this pattern being used: if (try { failing code }) {...} else { $err .= $@ } $@ is never set by try() and the only way I know of catching the exception is using a catch block and getting it from $_. So, I've made some changes on the implementation loading code to fix this problem. I was thinking on how to make a failing test for this but I don't know. The only thing I can think of, is to set a non existant implementation (this will only test one of the two fixes) to see if the exception contains the one catched. Hope this is fine: https://github.com/autarch/class-load/pull/3
Oh!, just opened another ticket for a pull requests that just solve this issue :-) Please see ticket 73341. -dk On Thu Nov 10 16:33:44 2011, autarch@urth.org wrote: Show quoted text
> On Thu, 10 Nov 2011, Mateu X. Hunter via RT wrote: >
> > I get the following uninitialized warning with Class::Load v0.12 when I > > don't have Class::Load::XS installed. > > > > Use of uninitialized value $@ in concatenation (.) or string at > > /usr/local/share/perl/5.12.4/Class/Load.pm line 34.
> > I can't reproduce this (with Perl 5.14.2 or 5.12.3). > > > -dave > >
/*======================================================== ==== Show quoted text
> http://VegGuide.org http://blog.urth.org > Your guide to all that's veg House Absolute(ly Pointless) >
========================================================= ===*/