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.
In reply to Hooks like Storable for Dumper? by xdg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |