in reply to Re^6: How to import "global" variables into sub-scripts from main script?
in thread How to import "global" variables into sub-scripts from main script?

our is not a declaration. It's different to local and my. Yes, it's confusing.

Have you tried it? For example:

1.pl

#!/usr/bin/perl use warnings; use strict; our $x = 12; require './2.pl'; print "Done\n";

2.pl

#!/usr/bin/perl use warnings; use strict; our $x; print $x, "\n";

Calling 1.pl:

12 Done

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]