<?xml version="1.0" encoding="windows-1252"?>
<node id="77778" title="Re: Re: Re (tilly) 3: No excuses about not using CGI.pm" created="2001-05-03 21:09:40" updated="2005-07-21 01:26:50">
<type id="11">
note</type>
<author id="9073">
merlyn</author>
<data>
<field name="doctext">
You got it in the wrong order.  You can't execute a BEGIN block before you compile it, and you compile it in the order in the file.  So you've compiled the lone mysub at the top, then you compile the first BEGIN block, then execute it, then compile the second BEGIN block, then execute it and OOPS! there's the problem.
&lt;p&gt;
Put the lone mysub at the bottom of the file, and it'll be all good.

&lt;p&gt;-- &lt;a href="http://www.stonehenge.com/merlyn/"&gt;Randal L. Schwartz, Perl hacker&lt;/a&gt;&lt;/p&gt;</field>
<field name="root_node">
77580</field>
<field name="parent_node">
77773</field>
</data>
</node>
