in reply to Re: Trying to get started with IO::Multiplex
in thread Trying to get started with IO::Multiplex

The four client error messages are: Use of uninitialized value in unpack at /usr/share/perl5/IO/Multiplex. +pm line 352. Use of uninitialized value in numeric eq (==) at /usr/share/perl5/IO/M +ultiplex.pm line 352. Use of uninitialized value in unpack at /usr/share/perl5/IO/Multiplex. +pm line 352. Use of uninitialized value in numeric eq (==) at /usr/share/perl5/IO/M +ultiplex.pm line 352.
Any ideas on the error messages?

It sounds like your problem is in the module at line 352. :-)

So use a local copy of the module,( or even edit the module as root for testing), and see what is getting handed off at line 352.

My ESP guesses the Multiplex module expects an array and is only getting a single value? You have to dig in and see.

OR.... go for a more standard solution using IO::Select or forked/threaded servers. Google for many previously posted code examples or visit the tutorials here at Perlmonks.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^3: Trying to get started with IO::Multiplex
by Bruce32903 (Scribe) on Jan 18, 2011 at 04:07 UTC
    I will take a look at line 352 but I suspect that IO::Select will look better now that I have something working. So far my only push toward IO::Multiplex was "THEY SAID" that it was easier. I have been around long enough to know that I should be careful with any quote of Mr./Mrs. They.

    Thank you,
    Bruce