xdg has asked for the wisdom of the Perl Monks concerning the following question:
I'm fact-checking a tutorial presentation I've written. Does anyone know if any of the Data::Dumper clones have a hooking mechanism similar to Storable? E.g.:
package My::Class; sub STORABLE_freeze { # my custom freezing routine } sub STORABLE_thaw { # my custom thawing routine }
Given that the dumpers usually offer eval-able code in a consistent manner, I'd presume that a hook implementation would be hard to implement. I haven't seen one and am stating in the presentation that they don't exist, but I'd be happy to be proven wrong.
Thanks,
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hooks like Storable for Dumper?
by educated_foo (Vicar) on Jan 02, 2006 at 21:05 UTC | |
|
Re: Hooks like Storable for Dumper?
by jkeenan1 (Deacon) on Jan 02, 2006 at 21:11 UTC | |
by xdg (Monsignor) on Jan 02, 2006 at 22:33 UTC | |
by Aristotle (Chancellor) on Jan 03, 2006 at 12:41 UTC | |
by xdg (Monsignor) on Jan 03, 2006 at 15:29 UTC | |
|
Re: Hooks like Storable for Dumper?
by demerphq (Chancellor) on Jan 03, 2006 at 12:46 UTC | |
by xdg (Monsignor) on Jan 03, 2006 at 15:22 UTC | |
by demerphq (Chancellor) on Jan 03, 2006 at 17:03 UTC | |
by xdg (Monsignor) on Jan 03, 2006 at 18:02 UTC | |
by demerphq (Chancellor) on Jan 04, 2006 at 18:28 UTC | |
by demerphq (Chancellor) on Jan 03, 2006 at 18:17 UTC | |
|