in reply to 'if' pragma and modules with an empty import list

Well, it does say it uses use MODULE ARGUMENTS; when it's specifically the use MODULE (); syntax that prevents a module's import from being called. Clarification could be helpful, but it's not a bug.

Don't just submit a ticket pointing clarification could be useful. At a minimum, provide a recommended alternative.

Replies are listed 'Best First'.
Re^2: 'if' pragma and modules with an empty import list
by kcott (Archbishop) on Apr 11, 2017 at 06:34 UTC

    G'day ikegami,

    Thanks for the feedback.

    It does also talk about no ARGUMENTS but, you are correct, ARGUMENTS being an empty list is not mentioned.

    The BUGS section already says it doesn't handle VERSION. I was going to suggest adding "empty list" to that.

    "At a minimum, provide a recommended alternative."

    In my OP, I proposed a workaround along the lines of:

    BEGIN { require MODULE if CONDITION }

    I'll assume that's adequate; however, if you had something more substantial in mind, please advise. Thanks.

    — Ken

      In my OP, I proposed a workaround along the lines of:

      I meant: Please provide *specific* wording changes (if not a patch).

        Thanks for clarifying that. I'll post the ticket number when it's done.

        — Ken