in reply to Complex Data Structures
instead of$purchase_table->add_purchase($customer, $basket, $purchase_id, $value +);
That way, I not only understand exactly what's going on, but I'm also less likely to screw myself up by manipulating the large structure differently in different places in the code. And I can change the actual implementation without changing the function/method calls.$purchases->{$customer}->[$basket]->{$purchase_id} = $value;
And as jeffa mentioned, Data::Dumper is a lifesaver. :-)
-- Mike
--
just,my${.02}
|
---|