in reply to Re: Re: Re: resurrecting objects?
in thread resurrecting objects?

I suspect that you could find the pointer again using unpack with the -P option to follow a pointer back to where the object is (hopefully) still in existence.

It would take a serious hacker to successfully do this, and only the insane would consider it. I say this with full knowledge that this may motivate you to demonstrate what a wizard you are by going out and doing it. What is worse is that I feel no remorse in saying this, I am confident that you of all people are capable of doing it, and I am sure you would find it fun in a crazy sort of way.

Aren't I a jerk when I want to be? :-P

Replies are listed 'Best First'.
(tye)Re2: resurrecting objects?
by tye (Sage) on May 04, 2001 at 01:58 UTC

    But finding the pointer wouldn't be of much use unless you (brace yourself) create a dummy object and then overwrite its pointer with your newly re-found pointer. When you are done, you overwrite the pointer with the original value again.

    The biggest problem with this is that your new object reference didn't increment the reference count so the object could be destroyed out from under you at any time (if it wasn't already destroyed before you started).

    For some tips on getting started on this, see (tye)Re: Creative use of pack/unpack.

            - tye (but my friends call me "Tye")