in reply to Re^2: Exporting use strict/warnings into main::
in thread Exporting use strict/warnings into main::

Sure, certain packages do it, but they are rather lower-level than this utility.

Moo, Role::Tiny, Moose, Mojolicious, Dancer, Dancer2, Test::Most, and lots more...

  • Comment on Re^3: Exporting use strict/warnings into main::

Replies are listed 'Best First'.
Re^4: Exporting use strict/warnings into main::
by 1nickt (Canon) on May 19, 2020 at 18:44 UTC

    Yes, that's exactly my point. All of those are frameworks on which you build an app, so it's appropriate to have them export things like strict into the caller's namespace. The OP's utility does not fit that category.


    The way forward always starts with a minimal test.
      Yes, that's exactly my point. All of those are frameworks ...

      Ah, I see, I thought with "lower-level" you meant modules like strictures or Modern::Perl, which is why I didn't list those.

      The OP's utility does not fit that category.
      It doesn't? That module is a special purpose utility with a rich DSL. So, the module does define its own rules. It is rather unlikely that someone casually uses it and all of a sudden trips over strict.