Then you may be able to define a couple of hooks for freezing and thawing XML::LibXML::Element objects
# these are completely untested! sub XML::LibXML::Elemment::STORABLE_freeze { my $self = shift; $self->toString; } sub XML::LibXML::Elemment::STORABLE_thaw { my $class = shift; my (undef, $str) = @_; XML::LibXML->parse_xml(string => $str)->documentElement; }
See the "Hooks" section in the Storable documentation.
In reply to Re^3: Use Storable for storing XML::LibXML object
by tobyink
in thread Use Storable for storing XML::LibXML object
by buff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |