/usr/share/doc/kildclient/html/ch07s05.xhtml is in kildclient-doc 3.2.0-2.
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 | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><title>7.5. Controlling Worlds with Perl</title><link rel="stylesheet" type="text/css" href="docbook.css"/><link rel="stylesheet" type="text/css" href="kildclient.css"/><meta name="generator" content="DocBook XSL Stylesheets V1.79.1"/><link rel="prev" href="ch07s04.xhtml" title="7.4. Saving Variables Permanently"/><link rel="next" href="chap_triggers.xhtml" title="Chapter 8. Triggers"/></head><body><header><div class="navheader"><table style="width: 100%; "><tr><th style="text-align: center; " colspan="3">7.5. Controlling Worlds with Perl</th></tr><tr><td style="width: 20%; text-align: left; "><a accesskey="p" href="ch07s04.xhtml">Prev</a> </td><th style="width: 60%; text-align: center; ">Chapter 7. Using Perl in KildClient</th><td style="width: 20%; text-align: right; "> <a accesskey="n" href="chap_triggers.xhtml">Next</a></td></tr></table><hr/></div></header><section class="sect1" id="idm965"><div class="titlepage"><div><div><h2 class="title" style="clear: both">7.5. Controlling Worlds with Perl</h2></div></div></div><p>In <a class="xref" href="sec_closing_worlds.xhtml" title="3.3. Closing Worlds and Exiting KildClient">Section 3.3, “Closing Worlds and Exiting KildClient”</a> it was explained that
you can disconnect from a World with the
<code class="function">$world->dc</code> function. It now should be clear why
there is a <code class="literal">$world-></code> in front. Another function that
you know already is <code class="function">$world->close</code>, to disconnect
and close a World.</p><p>There are a few more functions that allow you to control Worlds
from Perl. The <code class="function">$world->next</code> and
<code class="function">$world->prev</code> move to the next or previous world
in the list of tabs. It is also possible to pass an argument to them,
specifying how many Worlds to move. So,
<strong class="userinput"><code>$world->next(2)</code></strong> moves two Worlds forward, and
<strong class="userinput"><code>$world->prev(3)</code></strong> moves three Worlds back.</p><p>To go to a specific World, use the <code class="function">gotow</code>
function (which <span class="emphasis"><em>does not</em></span> belong to the
<code class="classname">World</code> class, since it does not depend on a
particular World), passing as argument a string with the name of the
World.</p><p>Finally, you can use the <code class="function">quit</code> function to
disconnect and close all Worlds and then exit KildClient.</p></section><footer><div class="navfooter"><hr/><table style="width: 100%; "><tr><td style="width: 40%; text-align: left; "><a accesskey="p" href="ch07s04.xhtml">Prev</a> </td><td style="width: 20%; text-align: center; "><a accesskey="u" href="chap_perl.xhtml">Up</a></td><td style="width: 40%; text-align: right; "> <a accesskey="n" href="chap_triggers.xhtml">Next</a></td></tr><tr><td style="width: 40%; text-align: left; vertical-align: top; ">7.4. Saving Variables Permanently </td><td style="width: 20%; text-align: center; "><a accesskey="h" href="index.xhtml">Home</a></td><td style="width: 40%; text-align: right; vertical-align: top; "> Chapter 8. Triggers</td></tr></table></div></footer></body></html>
|