Skip Menu |
 

This queue is for tickets about the Hash-AsObject CPAN distribution.

Report information
The Basics
Id: 52597
Status: new
Priority: 0/
Queue: Hash-AsObject

People
Owner: Nobody in particular
Requestors: sshaw [...] lucas.cis.temple.edu
Cc:
AdminCc:

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

Attachments
Hash-AsObject-0.11.AUTOLOAD-inherritance-fix.patch



Subject: Infinite Recursion When Sub Classed
Date: Wed, 9 Dec 2009 02:05:01 -0500 (EST)
To: bug-Hash-AsObject [...] rt.cpan.org
From: Skye Shaw <sshaw [...] lucas.cis.temple.edu>
Download (untitled) / with headers
text/plain 338b
Hi, When you define methods in AUTOLOAD like: *{ "${cls}::$key" } = sub { } And attempt to call them with: goto &$key AUTOLOAD will be called infinitely since the sub was defined in $cls's namespace not Hash::AsObject's. Easy fix: goto &{ "${cls}::$key" } I've attached a patch and added to test 07. -Skye

Message body is not shown because sender requested not to inline it.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.