Mano_Man has asked for the wisdom of the Perl Monks concerning the following question:
Now, I'd like to add some kind of use/require so that the definitions that I include in global defines are taken in other packages/scripts. That means not only the global variables (which is easy) but also things like ' use strict ' or ' use Data::Dumper ' . To me, it feels like writing a central "include <> /Macro / define" file in C++. Is this possible in Perl ? Appreciate the answers !Package GlobalDefined; use strict; use warnings; our $PROJECT_GLOBAL_VAR1; ... # Tools use Data::Dumper; ... 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Code Reuse
by LanX (Saint) on Aug 20, 2017 at 17:58 UTC | |
|
Re: Code Reuse
by poj (Abbot) on Aug 20, 2017 at 17:03 UTC | |
by Anonymous Monk on Aug 20, 2017 at 17:12 UTC | |
|
Re: Code Reuse
by Athanasius (Archbishop) on Aug 21, 2017 at 06:08 UTC | |
|
Re: Code Reuse
by shmem (Chancellor) on Aug 20, 2017 at 17:04 UTC | |
|
Re: Code Reuse
by stevieb (Canon) on Aug 20, 2017 at 20:12 UTC | |
|
Re: Code Reuse
by Anonymous Monk on Aug 21, 2017 at 16:10 UTC | |
|
Re: Code Reuse
by Mano_Man (Acolyte) on Aug 28, 2017 at 14:17 UTC | |
by LanX (Saint) on Aug 28, 2017 at 16:00 UTC |