<?xml version="1.0" encoding="windows-1252"?>
<node id="1017713" title="Re: Msg.pm + UDP" created="2013-02-07 13:52:33" updated="2013-02-07 13:52:33">
<type id="11">
note</type>
<author id="861371">
kcott</author>
<data>
<field name="doctext">
&lt;p&gt;G'day [Wiggins],&lt;/p&gt;
&lt;p&gt;
This book was printed about 16 years ago and, as such, is now rather dated. Perl 5.4 was the current version around that time (see [http://perldoc.perl.org/perlhist.html|perlhist] for specifics).
&lt;/p&gt;
&lt;p&gt;
I had a quick scan through Chapter 13 (I assume that's what you're referring to) but neither &lt;c&gt;g-pkg&lt;/c&gt; nor &lt;c&gt;#New Server ...&lt;/c&gt; leapt out at me. Could you reference their page numbers and also give some indication of what you're having trouble understanding.
&lt;/p&gt;
&lt;p&gt;
I did find the code for &lt;c&gt;set_event_handler()&lt;/c&gt; (page 214). Most of the examples of its usage (e.g. &lt;c&gt;connect()&lt;/c&gt;, &lt;c&gt;disconnect()&lt;/c&gt;, &lt;c&gt;send_later()&lt;/c&gt;) do not have a package name as the first argument. However, on page 205, you will find the call:
&lt;/p&gt;
&lt;code&gt;
Msg-&gt;set_event_handler(\*STDIN, "read" =&gt; \&amp;kbd_input);
&lt;/code&gt;
&lt;p&gt;
I'm not sure if that helps. Again, some indication of what you're having trouble understanding would help in providing a better answer.
&lt;/p&gt;


&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-861371"&gt;
&lt;p&gt;-- Ken&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1017679</field>
<field name="parent_node">
1017679</field>
</data>
</node>
