in reply to importing arrays from other module
and in somefile.pl:our @p = (1, 2, 3, 4, 5);
No import/export needed (as you're using just one namespace). Of course, if you're really dirty, you can leave out the our as well - just make sure you aren't using strict either (or use full path names).require "foo.pl"; our @p; print "@p\n";
|
|---|