IPC::IDT Argumenmt isn't numeric in subtraction (at LDT.pm line 1131)

[email protected] (Alex Farrell)
Newsgroups perl.loop
Message-ID <[email protected]>
Hi,

my code:

  print "[MSGHANDLER] checking for new messages\n";

  my $ldt=new IPC::LDT(handle=>$socket, objectMode=>1);
  ($msg) = $ldt->receive or (print $ldt->{'msg'} && exit
1);

  print "[MSGHANDLER] Received message on socket
$socket\n";

This code is called from an Event 0.81 io watcher, and
$socket is $event->w->fd.

this produces the following output:

[MSGHANDLER] checking for new messages

Argument "^E^D^B" isn't numeric in subtraction (-) at
<perlpath>/lib/site_perl/5.6.0/IPC/LDT.pm line 1131.

Argument "^E^D^B" isn't numeric in subtraction (-) at
<perlpath>/lib/site_perl/5.6.0/IPC/LDT.pm line 1131.

[MSHANDLER] Received message on socket GLOB(0x23870)

I wonder if this is the correct method to receive messages
using a combination of Event and IPC::IDT and if so, why I
get this error message. If not, what am I doing wrong?

Any info greatly appreciated.

Alex Farrell.

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.