Re: "Event multiplex" errors

2001-07-17 Thread Joshua Pritikin
Jeff Boes <[EMAIL PROTECTED]> wrote: >What is the significance of these messages? > > Event: multiplex 0.0060s at ... > >I can't find anything on them in the code or docs. You are seeing the result of setting $Event::DebugLevel. This is mainly useful for debugging Event itself. You wil

Re: Possible error in Event::Watcher::configure?

2001-07-17 Thread Uri Guttman
> "GB" == Graham Barr <[EMAIL PROTECTED]> writes: GB> Heh, I was going to reply with the same answer, until I realized GB> the problem was not the assignment, but the -2. Try GB> perl -we '@a = splice @b, -2' yoicks! you got it there. he seems to want to slice from the right edge.

Re: Possible error in Event::Watcher::configure?

2001-07-17 Thread Graham Barr
On Tue, Jul 17, 2001 at 11:37:28AM -0400, Uri Guttman wrote: > > "JB" == Jeff Boes <[EMAIL PROTECTED]> writes: > > JB> while (my ($k,$v)= splice @_, -2) { $o->$k($v)} > > JB> is a bug that should read > > JB> while (@_ and my ($k,$v)= splice @_, -2) { $o->$k($v)} > > JB> at lea

Re: Possible error in Event::Watcher::configure?

2001-07-17 Thread Uri Guttman
> "JB" == Jeff Boes <[EMAIL PROTECTED]> writes: JB> while (my ($k,$v)= splice @_, -2) { $o->$k($v)} JB> is a bug that should read JB> while (@_ and my ($k,$v)= splice @_, -2) { $o->$k($v)} JB> at least, under perl 5.6.1. why do you say that? returning an empty list is a normal

"Event multiplex" errors

2001-07-17 Thread Jeff Boes
What is the significance of these messages? Event: multiplex 0.0060s at ... I can't find anything on them in the code or docs. -- Jeff Boes vox 616.226.9550 Database Engineer fax 616.349.9076 Nexcerpt, Inc.

Re: Possible error in Event::Watcher::configure?

2001-07-17 Thread Jeff Boes
On Mon, 16 Jul 2001 22:07:19 +0200 [EMAIL PROTECTED] (Jochen Stenzel) wrote: > >$event->configure( data => 'foo' ); > > please use data() to modify the data attribute: > > $event->data('foo'); > > This should work. Perhaps, but I still think that while (my ($k,$v)= splice @_, -2) { $o->$

Re: event-based programming with a twist

2001-07-17 Thread pcg
on-topic-content: The first larger program using coroutines is now doing "mission critical" work (failure == loss of relatively unimportant data). It's my news-scanner which scans ~60 servers at the same time. It's just as fast (600k/s is where the network tops out), requires only slightly more m