Skip Menu |

This queue is for tickets about the Object-InsideOut CPAN distribution.

Report information
The Basics
Id: 22127
Status: resolved
Priority: 0/
Queue: Object-InsideOut

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

Bug Information
Severity: Important
Broken in: 2.04
Fixed in: 2.14



Subject: Run-time loading via eval "require $class"
The run-time loading of OIO classes via eval "require $class"; is broken. In the documentation, the support for eval { require ... }; is claimed to be supported, but I don't see how this can be useful (see perldoc -f require for why I'm using the string version of eval instead of the block version). In the attachment you can find: * three class files for classes, where nephew inherits from middle that inherits from grand; * test-use.pl and test-use.result, which include the reference test cases and show that all is fine when nephew is "used" normally * test-nouse.pl, where nephew is *not* used from the beginning, and troubles start. Am I missing something? I'm using perl 5.8.8 on Linux, no threads.
Subject: OIO.zip
Download OIO.zip
application/zip 2.4k

Message body not shown because it is not plain text.

Subject: Run-time loading via eval "require $class" - update
I just installed 2.12 and the problem is still there (I don't know how to update this bug, anyway). I also tried to make a third example using eval { require middle }; and eval { require nephew }; in the right places, but the problem persists.
From: JDHEDDEN [...] cpan.org
Thanks for the bug report. I found and fixed the problem, and have posted OIO 2.13 to CPAN.
Upgraded to 2.14 and works like a charm, thanks :)