Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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.