On Wed, 2005-08-24 at 09:45 -0500, Boysenberry Payne wrote: > So it would seem this is a circular reference right? > How can I get the info I need in each of these without getting caught > by this?
Some techniques are described here: http://www.perl.com/pub/a/2002/08/07/proxyobject.html > I've been using O'reilly books in particular the books in The Perl CD > Bookshelf v3.0. > They mentioned an "experimental" WeakRef module for weakening > references > to prevent the circular logic thing. But I usually try and have my > modules be the > only "experimental" parts of my apps if possible. I just found 13.13. > Coping with Circular Data Structures > in the Perl Cookbook, maybe that has my solution. Scalar::Util::weaken is probably what you want. Be aware of the age of the books you're using. - Perrin