in reply to Re^3: socio-political guidance sought
in thread socio-political guidance sought
> The problem is that this tests for the Toaster method while the data is serialized/exported, not while it's deserialized/imported.
This is true, but for my purposes, this is better. Since the serialized string is being inserted into the database, I don't want it to have the thaw method associated with it unless it has a thaw method (justification: its misleading to the user)
> but I think the easiest solution is to define
> sub UNIVERSAL::Toaster { $_[0] }
ahh, but I don't have control over any non-AutoDB objects (I can't inject any methods into their space). Non-AutoDB objects are persisted only because they are pointed to by AutoDB objects (DD happily recurses over all references and builds a structure). But they have no ancestral connection to AutoDB.
Thus, this method won't work for me :(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: socio-political guidance sought
by Jenda (Abbot) on Aug 21, 2004 at 21:28 UTC |