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

[email protected] ((Jochen Stenzel))
Newsgroups perl.loop
Message-ID <[email protected]>
Hello, Jeff,

>I was trying to reset the 'data' attribute for an 'idle' event. 
>Specifically, the event got created without the 'data => $anything'
>attribute, and I'm trying to add it later. [...]

>Here's my code:
>[...]
>$event->configure( data => 'foo' );

please use data() to modify the data attribute:

  $event->data('foo');

This should work.

Greetings

          Jochen
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.