Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by Ovid (Cardinal)
on May 20, 2020 at 22:37 UTC ( [id://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 (Canon) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11117005]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-16 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found