Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by Ovid (Cardinal)
on May 20, 2020 at 22:37 UTC ( #11117005=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::

Please put local in front of those package variable assignments. Global changes are bad.

  • 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 (Abbot) on Jun 01, 2020 at 22:23 UTC

    But I do not want them localized. I want global changes on Data::Dumper output. That's why I wrote it like that.

    Edit: Oh, you are saying it's a dangerous example, I see. I'll update the node.


    The way forward always starts with a minimal test.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2020-10-29 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (269 votes). Check out past polls.

    Notices?