in reply to Re: Adding an AoH to an AoH
in thread Adding an AoH to an AoH

Thanks ikegami for pointing out that very subtle bug of the undef and suggesting just recreating the @users array for each pass. Brilliant. I don't know if I would have ever seen that. Anyway, all is well and working as hoped.

Which brings up another point: create a test that really emulates the actual application. In this case my test was too sanitized and would never have shown me the problem.

—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot

Replies are listed 'Best First'.
Re^3: Adding an AoH to an AoH
by ikegami (Patriarch) on Jan 21, 2008 at 17:44 UTC

    Indeed. Minimizing the code is a great way of isolating a problem.

    Another good way of finding sticky problems is trying to describe the problem to someone else. Follow the description by as man "It can't be X because I tried Y." as you can think of. When doing so, I usually come up with Xs I hadn't handled.