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

Owner: Nobody in particular
Requestors: polettix [...]

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

Subject: Run-time loading via eval "require $class"
Download (untitled) / with headers
text/plain 720b
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; * and test-use.result, which include the reference test cases and show that all is fine when nephew is "used" normally *, 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.
application/zip 2.4k

Message body not shown because it is not plain text.

Subject: Run-time loading via eval "require $class" - update
Download (untitled) / with headers
text/plain 245b
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 [...]
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 :)

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

Please report any issues with to