Think about Loose Coupling | |
PerlMonks |
What does this code do?by John M. Dlugosz (Monsignor) |
on Oct 03, 2002 at 20:29 UTC ( [id://202637]=perlquestion: print w/replies, xml ) | Need Help?? |
John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
In Exporter.pm,
It appears that the concept is to call export in the general case, and do an inline symbol assignment if all special conditions are met. But just what does that condition say? I understand setting $Verbose or $Debug, and see that the rest is inside a grep to test each argument against some conditions. But, what is the significance of the first element of @EXPORT_OK or the first element of @fail? Basically, if one of the arguments is the first entry in @EXPORT_OK, then the general case is performed. So what's special about the first OK item? —John
Back to
Seekers of Perl Wisdom
|
|