note
chexmix
I like this post very much, but the following is opaque to me for some reason:
<p>"<b>Case 3:</b> The ':DEFAULT' tag *should* export &func1 so you might expect the error here to concern a missing &func2. In fact Perl complains about &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 => \@EXPORT."
<p>I confess I still don't know what is going on here, and am wondering if someone can help me out.
<p>The words "is automatically set in our modules %EXPORT_TAGS hash like this DEFAULT => \@EXPORT" seem inaccurate to me, since when I look up at the code for MyModule.pm, I see the line
<p>%EXPORT_TAGS = ( DEFAULT => [qw(&func1)],
<p>and not the line
<p>%EXPORT_TAGS = ( DEFAULT => \@EXPORT,
<p>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?
<p>Thanks. I feel I am blanking on something obvious here, but just can't see it this rainy morning.
102347
102347