Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Exporting use strict/warnings into main::

by haukex (Archbishop)
on May 19, 2020 at 06:47 UTC ( [id://11116927]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11116927]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-20 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found