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....
In reply to Re: What does this code do?
by VSarkiss
in thread What does this code do?
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |