True. I usually expose "deep" objects by methods rather than hash access, so it's not really a problem for the majority of my code.

Adrian

On Friday, February 28, 2003, at 03:54 pm, [EMAIL PROTECTED] wrote:

On Fri, Feb 28, 2003 at 11:51:07AM +0000, Adrian Howard wrote:
Option three.

   isa_ok($obj, 'MyClass');
   is_deeply($obj, { foo => 42, bar => 23 });

This is, unfortunately, shallow. It won't compare objects inside $obj.





Reply via email to