<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://alteeve.com/w/index.php?action=history&amp;feed=atom&amp;title=Net%3A%3ADBus%3A%3ACallback_Methods</id>
	<title>Net::DBus::Callback Methods - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://alteeve.com/w/index.php?action=history&amp;feed=atom&amp;title=Net%3A%3ADBus%3A%3ACallback_Methods"/>
	<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=Net::DBus::Callback_Methods&amp;action=history"/>
	<updated>2026-04-04T04:22:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://alteeve.com/w/index.php?title=Net::DBus::Callback_Methods&amp;diff=453&amp;oldid=prev</id>
		<title>Digimer: Created page with &#039;{{dbtut_header}}  = new =  Usage: &lt;source lang=&quot;perl&quot;&gt; my $cb=Net::DBus::Callback-&gt;new(         method =&gt; $name,         [args  =&gt; \@args]); &lt;/source&gt;  OR  &lt;source lang=&quot;perl&quot;&gt; m…&#039;</title>
		<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=Net::DBus::Callback_Methods&amp;diff=453&amp;oldid=prev"/>
		<updated>2009-10-12T02:55:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{dbtut_header}}  = new =  Usage: &amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt; my $cb=Net::DBus::Callback-&amp;gt;new(         method =&amp;gt; $name,         [args  =&amp;gt; \@args]); &amp;lt;/source&amp;gt;  OR  &amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt; m…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Páàjì titun&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{dbtut_header}}&lt;br /&gt;
&lt;br /&gt;
= new =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt;&lt;br /&gt;
my $cb=Net::DBus::Callback-&amp;gt;new(&lt;br /&gt;
        method =&amp;gt; $name,&lt;br /&gt;
        [args  =&amp;gt; \@args]);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt;&lt;br /&gt;
my $cb=Net::DBus::Callback-&amp;gt;new(&lt;br /&gt;
        object =&amp;gt; $object,&lt;br /&gt;
        method =&amp;gt; $name,&lt;br /&gt;
        [args  =&amp;gt; \@args]);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the first case; Creates a new callback object that calls a plain old function (as opposed to a method). You can pass arguments to the function by putting them into an array and passing a reference to that array in the optional &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;args&amp;lt;/span&amp;gt;&amp;#039; parameter. These values would be passed to the function before those passed in the &amp;#039;[[Net::DBus::Callback Methods#invoke|invoke]]&amp;#039; method.&lt;br /&gt;
&lt;br /&gt;
In the second case; Creates a new callback object that calls a method in the referenced &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$object&amp;lt;/span&amp;gt;&amp;#039;. Beyond this, it is the same as the first case.&lt;br /&gt;
&lt;br /&gt;
= invoke =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt;$cb-&amp;gt;invoke(@args)&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This takes an array of arguments and passes them into the referenced callback after any arguments passed in the callback&amp;#039;s constructor.&lt;br /&gt;
&lt;br /&gt;
{{footer}}&lt;/div&gt;</summary>
		<author><name>Digimer</name></author>
	</entry>
</feed>