in reply to Re: Wrong + Right = Even Worse (do)
in thread Wrong + Right = Even Worse

That depends on what the pseudo-modules do. Most of them define subs and initialize global variables, so do wouldn't be much better - at least in the pseudo-modules. It might work in the OO module, though.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^3: Wrong + Right = Even Worse (do)
by tye (Sage) on Apr 04, 2014 at 13:45 UTC
    Most of them define subs and initialize global variables, so do wouldn't be much better

    The problem you reported was that one module was including non-modules in order to get those subroutines defined in its package and that broke other places that still wanted those subs defined in their package (main).

    do would fix the problem you reported.

    - tye        

      do runs the file always, but it does update %INC if it finds it. Therefore, it might not solve the problem.
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ