#MyModule.pm package MyModule; use strict; our $variable = 'hello!'; #### #MyScript.pl use strict; use MyModule; print $MyModule::variable;