* Robert McArthur ([EMAIL PROTECTED]) [010925 23:14]: > If there's a switch for top-level cloning to be optional, how about one > to make the cloning total - the entire variable's structure is cloned. > Particularly useful with ties. In my example I use SPOPS-created > class objects which are tied to a DB. I'd like to simply provide the > template with the variable. However, since I'm letting any user edit > the templates (they make their own copy of rather than editing the > main template) this is dangerous. At the moment I clone the entire > structure by hand, but it would be nice not to do this (or if anyone > has another suggestion?).
Just speaking from an SPOPS perspective: every SPOPS object has a 'data' method that returns a hashref (non-blessed) copy of the object data. (The method name will probably be changed to 'as_data_only' to prevent collisions.) Chris -- Chris Winters ([EMAIL PROTECTED]) Building enterprise-capable snack solutions since 1988.
