Thread

Posted on Tue Jan 10 23:50:52 2006 by earl
Warning message from Object::Inside-Out

I was replacing a hash base module with it's inside out equivalent. When I tested the change, I got the following message.

(in cleanup) Not a SCALAR reference at ..../Object/InsideOut.pm line 1365.

I am using version 1.24. and the line of code is ...

if ($$self) {

I don't think I did anything unusual and I am not using a destruct subroutine. I put in some debug statements. I have a hash-based object with an inside-out component. Somehow, the hash-based object is getting passed to Inside Out's DESTROY.

What should I check next?
Direct Responses: 1613 | Write a response
Posted on Wed Jan 11 03:29:00 2006 by jdhedden in response to 1608
Re: Warning message from Object::Inside-Out
    Somehow, the hash-based object is getting passed to Inside Out's DESTROY.

This can occur if the hash-based object is being blessed into one of your inside-out classes. My first recommendation is to upgrade to Object::InsideOut v1.29. It's possible that an issue fixed in v1.26 may help. If that doesn't fix it, then email me directly with your code and info on your Perl version.
Direct Responses: 1614 | Write a response
Posted on Wed Jan 11 23:35:14 2006 by earl in response to 1613
Re: Warning message from Object::Inside-Out
When I upgraded to v1.29, the problem went away. Thanks.
Write a response