Mozilla::ObserverService is a Perl interface to the Mozilla nsIObserverService.
SYNOPSIS
use Mozilla::ObserverService;
my $cookie = Mozilla::PromptService::Register({
'http-on-examine-response' => sub {
my $http_channel = shift;
print $http_channel->responseStatus;
},
});
# We don't need it anymore...
Mozilla::PromptService::Unregister($cookie);
Mozilla::ObserverService uses Mozilla nsIObserverService to allow perl functions register for notifications.
For more detailed information see Mozilla's nsIObserverService documentation.
Product's homepage
Requirements:
· Perl