Global variables
- http://stackoverflow.com/questions/4543934/how-to-share-export-a-global-variable-between-two-different-perl-scripts
- http://perldoc.perl.org/functions/our.html
File one
package Module;
use strict;
use warnings;
use Exporter;
#our @ISA = 'Exporter';
#our @EXPORT = qw($global_variable);
our $global_variable = 'interesting';
our $two = '???';
1;
File two
use strict;
use warnings;
use feature 'say';
use Module;
say $Module::global_variable;
say $Module::two;
Console output
$ perl hello.pl
interesting
???