Net::DBus::Binding::Value(3pm) User Contributed Perl Documentation Net::DBus::Binding::Value(3pm)NAME
Net::DBus::Binding::Value - Strongly typed data value
SYNOPSIS
# Import the convenience functions
use Net::DBus qw(:typing);
# Call a method with passing an int32
$object->doit(dint32("3"));
DESCRIPTION
This module provides a simple wrapper around a raw Perl value, associating an explicit DBus type with the value. This is used in cases
where a client is communicating with a server which does not provide introspection data, but for which the basic data types are not
sufficient. This class should not be used directly, rather the convenience functions in Net::DBus be called.
METHODS
my $value = Net::DBus::Binding::Value->new($type, $value);
Creates a wrapper for the perl value $value marking it as having the dbus data type $type. It is not neccessary to call this method
directly, instead the data typing methods in the Net::DBus object should be used.
my $raw = $value->value
Returns the raw perl value wrapped by this object
my $type = $value->type
Returns the dbus data type this value is marked as having
AUTHOR
Daniel P. Berrange
COPYRIGHT
Copyright (C) 2004-2011 Daniel P. Berrange
SEE ALSO
Net::DBus, Net::DBus::Binding::Introspector, Net::DBus::Binding::Iterator
perl v5.14.2 2011-06-30 Net::DBus::Binding::Value(3pm)
Check Out this Related Man Page
Net::DBus::Dumper(3pm) User Contributed Perl Documentation Net::DBus::Dumper(3pm)NAME
Net::DBus::Dumper - Stringify Net::DBus objects suitable for printing
SYNOPSIS
use Net::DBus::Dumper;
use Net::DBus;
# Dump out info about the bus
my $bus = Net::DBus->find;
print dbus_dump($bus);
# Dump out info about a service
my $service = $bus->get_service("org.freedesktop.DBus");
print dbus_dump($service);
# Dump out info about an object
my $object = $service->get_object("/org/freedesktop/DBus");
print dbus_dump($object);
DESCRIPTION
This module serves as a debugging aid, providing a means to stringify a DBus related object in a form suitable for printing out. It can
stringify any of the Net::DBus:* objects, generating the following information for each
Net::DBus
A list of services registered with the bus
Net::DBus::Service =item Net::DBus::RemoteService
The service name
Net::DBus::Object =item Net::DBus::RemoteObject
The list of all exported methods, and signals, along with their parameter and return types.
METHODS
my @data = dbus_dump($object);
Generates a stringified representation of an object. The object passed in as the parameter must be an instance of one of Net::DBus,
Net::DBus::RemoteService, Net::DBus::Service, Net::DBus::RemoteObject, Net::DBus::Object. The stringified representation will be
returned as a list of strings, with newlines in appropriate places, such that it can be passed string to the "print" method.
BUGS
It should print out a list of object paths registered against a service, but this only currently works for service implemented in Perl
AUTHOR
Daniel P. Berrange
COPYRIGHT
Copyright (C) 2005-2011 Daniel P. Berrange
SEE ALSO
Net::DBus, Net::DBus::RemoteService, Net::DBus::Service, Net::DBus::RemoteObject, Net::DBus::Object, Data::Dumper.
perl v5.14.2 2011-06-30 Net::DBus::Dumper(3pm)
I am trying to execute a script in another server, i used Net::Ftp module
How to execute unix command in another server by using Net::Ftp module..
#!/usr/bin.perl
### Perl script to
$ftp->login($user_name,'password')
or die "Cannot login ", $ftp->message;... (2 Replies)