On Tue, Apr 18, 2000 at 06:46:03PM +0000, [EMAIL PROTECTED] wrote:
> In the Tutorial.pdf file i see this note towards the last 2/3 of page 11
> which says:
>
> "Beginning with version 0.60, Event additionally provides the base
> attribute data. It is intended not for configuration
> but for user controlled data storage".
Hm. This is a little misleading.
> My assumption is that this "data" would be passed on to the watcher as a
> parameter of the callback when the watcher
> is invoked.
>
> I've looked a the Event.pod which comes with version 0.73, but fail to see
> any mention of "data" there.
By default, all watchers are also hash refs. I recommend:
$watcher->{data} = ...;
And in the callback,
sub my_cb {
my $event = shift;
my $watcher = $e->watcher;
warn $watcher->{data};
...
}
> Also, are there more examples (someplace) where I can get some working stuff
> using Event?
Did you look in the demo/ & t/ directories? What are you looking for?
--
"May the best description of competition prevail."
via, but not speaking for Deutsche Bank