koindrop has asked for the wisdom of the Perl Monks concerning the following question:

Why isn't this code printing 2 periods every 2 seconds when I'm running rythmbox?

#!/usr/bin/perl use strict; use warnings; use Net::DBus; use Net::DBus::Reactor; my $bus = Net::DBus->session; my $service = $bus->get_service('org.gnome.Rhythmbox'); my $player = $service->get_object('/org/gnome/Rythmbox/Player', 'org.g +nome.Rhythmbox.Player'); $player->connect_to_signal("elapsedChanged", sub { print ".." } ); my $reactor = Net::DBus::Reactor->main; $reactor->run; exit(0);

Thanks in advance.

Replies are listed 'Best First'.
Re: help, learning Net::DBus
by Anonymous Monk on May 10, 2013 at 06:46 UTC