<?xml version="1.0" encoding="windows-1252"?>
<node id="703883" title="Re: Simple Module Tutorial" created="2008-08-12 09:24:17" updated="2008-08-12 05:24:17">
<type id="11">
note</type>
<author id="5816">
chexmix</author>
<data>
<field name="doctext">
I like this post very much, but the following is opaque to me for some reason:

&lt;p&gt;"&lt;b&gt;Case 3:&lt;/b&gt; The ':DEFAULT' tag *should* export &amp;func1 so you might expect the error here to concern a missing &amp;func2. In fact Perl complains about &amp;func1. Hmm, what is going on here. The DEFAULT tag name is special and is automatically set in our modules %EXPORT_TAGS hash like this DEFAULT =&gt; \@EXPORT."

&lt;p&gt;I confess I still don't know what is going on here, and am wondering if someone can help me out. 

&lt;p&gt;The words "is automatically set in our modules %EXPORT_TAGS hash like this DEFAULT =&gt; \@EXPORT" seem inaccurate to me, since when I look up at the code for MyModule.pm, I see the line

&lt;p&gt;%EXPORT_TAGS = ( DEFAULT =&gt; [qw(&amp;func1)],

&lt;p&gt;and not the line

&lt;p&gt;%EXPORT_TAGS = ( DEFAULT =&gt; \@EXPORT,

&lt;p&gt;Is the OP saying that the line as is in the MyModule.pm code is incorrect, because the "special" nature of DEFAULT overrides it with something else?

&lt;p&gt;Thanks. I feel I am blanking on something obvious here, but just can't see it this rainy morning.</field>
<field name="root_node">
102347</field>
<field name="parent_node">
102347</field>
</data>
</node>
