/usr/share/doc/libnet-dbus-perl/examples/dump-object-xml.pl is in libnet-dbus-perl 1.1.0-4build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/usr/bin/perl
use warnings;
use strict;
use Net::DBus;
use Net::DBus::Dumper;
use Carp qw(confess);
$SIG{__DIE__} = sub {confess $_[0] };
my $bus = Net::DBus->find;
if (int(@ARGV) != 2) {
die "syntax: $0 SERVICE OBJECT";
}
my $service = $bus->get_service(shift @ARGV);
my $object = $service->get_object(shift @ARGV);
my $xml = $object->_introspector->format();
print $xml, "\n";
|