|No such thing as a small change|
net::dbus exampleby didiw (Initiate)
|on Aug 14, 2019 at 12:12 UTC||Need Help??|
didiw has asked for the wisdom of the Perl Monks concerning the following question:
I want to write a script reacting on specific ipower events on dbus. Can someone please provide an example without polling dbus all the time=.
I thought using net::dbus::reactor and the add_read method seems the way to go, but I have no idea, what to do with the fd variable that is the first argument to add_read, because it is not explanined in the man page.
I also will stick to another other method, if it is working.
Anyway, I would like to have an example of what this file descriptor is used for.
Thanks in advance