Re: Hacking the object index
[prev]
[thread]
[next]
[Date index for 2004/09/16]
On Thu, Sep 16, 2004 at 10:15:50AM -0400, Perrin Harkins wrote:
> On Wed, 2004-09-15 at 17:32, William McKee wrote:
> > Is there a way to dump the contents of the %Live_Objects index to see
> > what I'm missing? For now I've hacked in support for this.
>
> Sounds like you've answered your own question. I don't see this going
> into the distribution, but it's easy to add a Data::Dumper call for it.
Yes, I did for the time being. However, my solution would require
tweaking the CDBI on every system and for each new release. That's why I
was asking if there were was a way to access that w/o my hack. I
couldn't find a means of directly accessing the index using either of
the following:
Dumper(\%Class::DBI::Live_Objects)
Dumper(\%MyDBI::Live_Objects)
Both returned empty lists.
> > Also, is there any way to get CDBI to give me the original class of a
> > deleted object? That would be *really* nice in some situations.
>
> I suspect you could add this as a property of deleted objects pretty
> easily.
Of course, why didn't I think of that!
Thanks,
William
--
Knowmad Services Inc.
http://www.knowmad.com