Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
@EXPORT_OK = qw($svar @avar %hvar); # DON'T!Exporting variables is not a good idea. They can change under the hood, provoking horrible effects at-a-distance that are too hard to track and to fix. Trust me: they are not worth it.
perl -MConfig -le 'print scalar keys %Config' 1234
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why does Config.pm break the rules?
by haukex (Archbishop) on Feb 17, 2023 at 14:16 UTC | |
by NERDVANA (Priest) on Feb 17, 2023 at 17:17 UTC | |
|
Re: Why does Config.pm break the rules?
by tobyink (Canon) on Feb 17, 2023 at 18:11 UTC | |
by roho (Bishop) on Feb 18, 2023 at 07:26 UTC | |
|
Re: Why does Config.pm break the rules?
by Corion (Patriarch) on Feb 17, 2023 at 11:36 UTC | |
|
Re: Why does Config.pm break the rules?
by LanX (Saint) on Feb 17, 2023 at 14:17 UTC | |
|
Re: Why does Config.pm break the rules?
by Bod (Parson) on Feb 18, 2023 at 02:15 UTC |