unix_hacker_beard has asked for the wisdom of the Perl Monks concerning the following question:
I am writing an IPC shell module to provide interprocess runtime hooks. I am using freeze and thaw from the Storable module to pass Command objects over a socket on localhost. Before freezing the object, these methods are available:
RETURN_IN_ORDER GetOptions DESTROY run AUTOLOAD ISA BEGIN PERMUTE isa new _init REQUIRE_ORDER
However, after thawing, only AUTOLOAD and DESTROY are available.
Here is the code for sending the frozen object over the socket (I've ensured send is working properly)
$self->{channel}->send(freeze(\$command));
And for unthawing (again, I know receive_nb to work properly)
my $command = thaw($self->{channel}->receive_nb());
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Storable freeze/thaw losing object methods
by ikegami (Patriarch) on Nov 22, 2011 at 20:14 UTC | |
by unix_hacker_beard (Novice) on Nov 22, 2011 at 21:45 UTC | |
by unix_hacker_beard (Novice) on Nov 22, 2011 at 21:24 UTC | |
Re: Sorable freeze/thaw losing object methods
by BrowserUk (Patriarch) on Nov 22, 2011 at 19:47 UTC | |
by unix_hacker_beard (Novice) on Nov 22, 2011 at 19:57 UTC | |
by BrowserUk (Patriarch) on Nov 22, 2011 at 20:47 UTC | |
by unix_hacker_beard (Novice) on Nov 22, 2011 at 21:26 UTC |
Back to
Seekers of Perl Wisdom