Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Mac-Errors CPAN distribution.

Report information
The Basics
Id: 17280
Status: resolved
Priority: 0/
Queue: Mac-Errors

People
Owner: bdfoy [...] cpan.org
Requestors: gozer [...] cpan.org
Cc:
AdminCc:

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



Subject: lib/Error.pm TIESCALAR method is incorrectly implemented
lib/Errors.pm's implementation of TIESCALAR is : sub TIESCALAR { my( $scalar, $class ) = @_; return bless \$scalar, __PACKAGE__; } But the TIESCALAR methos is called as ClassName->TIESCALAR(LIST); So $scalar ends up holding the class name, and I have seen errors on at least one of my OSX build boxes caused by this and perl-5.8.8-tobe The following patch is a more correct implementation and fixes the problems I've seen (straight from Tie::Scalar): sub TIESCALAR { my $class = shift; my $instance = shift || undef; return bless \$instance => $class; }
I fix this in Mac-Errors-1.11, which I just uploaded to PAUSE.
Subject: Re: [rt.cpan.org #17280] lib/Error.pm TIESCALAR method is incorrectly implemented
Date: Wed, 25 Jan 2006 17:48:38 -0800
To: bug-Mac-Errors [...] rt.cpan.org
From: "Philippe M. Chiasson" <gozer [...] ectoplasm.org>
brian_d_foy via RT wrote: Show quoted text
> I fix this in Mac-Errors-1.11, which I just uploaded to PAUSE.
Cool, nice turnaround time! -------------------------------------------------------------------------------- Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5 http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5
Download signature.asc
application/pgp-signature 251b

Message body not shown because it is not plain text.

Ticket re-opened after correspondence added. Re-closing.