http://www.perlmonks.org?node_id=11117005


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.