I have a question concerning the proper usage of POE::Filter::Reference.

I wish to use POE::Filter::Reference to send data from a child process to
a parent process across stdout (using POE::Wheel::Run).

Would this be accomplished by:

a) in the child process, use POE::Filter::Reference to serialize the data
structure, then use a print to stdout to send it, picking it up in my main
processes handler for stdout..

or

b) use it like a standard poe filter... ie...

$heap->{wheel} = POE::Wheel::Run->new(
                Program                 => sub { &test($argument) },
                StdoutEvent             => 'stdout',
                StderrEvent             => 'stderr',
                StdinFilter             => POE::Filter::Line->new(),
                StdoutFilter    => POE::Filter::Line->new(),
                StderrFilter    => POE::Filter::Reference->new()
);

to me, the second example doesn't make sense because from the man page,
using POE::Filter::Reference seems like a manual process (ie, you use
->put and ->get to serialize and deserialize).

However, the syntax of POE::Filter::Foo makes it seem as if you can use
this filter on any io stream the same way you would POE::Filter::Line,
POE::Filter::Stream, POE::Filter::HTTPD, etc.

?

I'm confused :)

-----------------------------------------------------------------------------
Brian Knox
Just Another Perl Hacker
perl -le '$_="6110>374086;2064208213:90<307;55";tr[0->][ LEOR!AUBGNSTY];print'


Reply via email to