Code Reuse

Posted on September 1, 2017. Filed under: Uncategorized | Tags: , |

Code Reuse

Hi, I’m looking to do something like this:

Package GlobalDefined;
use strict;
use warnings;
our $PROJECT_GLOBAL_VAR1;
...
# Tools
use Data::Dumper;
...
1;

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.

Liked it here?
Why not try sites on the blogroll...