in reply to What does this code do?
I'm not sure, but I think what's happening is that the code wants to check whether any of the arguments to import occur in @EXPORT_OK or @EXPORT_FAIL. In either of those cases, it has to call the "heavy" version, rather than the simple code below it. Now, if any of the arguments match an entry in those arrays, something has to match the first element (recall it's grep'ing through @_), so it may as well check there first. In other words, any other element of @EXPORT_OK or @EXPORT_FAIL would have served equally well.
Of course, I could be wrong....
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: What does this code do?
by John M. Dlugosz (Monsignor) on Oct 03, 2002 at 21:12 UTC |