Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I've been using Net::IPTtrie for handling IP address spaces. I am now trying to move to Net::Patricia because it's much faster, but there's something that I can't figure out. I need to store the tree structure so that I don't have to constantly rebuild it. But using Storable's nfreeze/thaw gives me a seg fault:
use Net::Patricia; use Storable qw(nfreeze thaw); my $pt = new Net::Patricia(AF_INET6); $pt->add_string(...) ... etc and then: my $frozen = nfreeze($pt); undef $pt; $pt = thaw($frozen);
(Boom! segfault here)
Why is this happening, and what other options do I have to store the tree structure?
Thanks in advance for your help.
cv
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem serializing Net::Patricia object
by philiprbrenan (Monk) on Aug 31, 2012 at 21:32 UTC | |
|
Re: Problem serializing Net::Patricia object
by cvicente (Initiate) on Aug 31, 2012 at 18:44 UTC | |
|
Re: Problem serializing Net::Patricia object
by mbethke (Hermit) on Sep 01, 2012 at 20:51 UTC |