I have arraytest.pm with below
package arraytest;
our @myarray = {"1", "2", "3", "4"};
and i'm trying to get the values from a different perl script
use arraytest;
foreach (@arraytest::myarray) {
print "$arraytest::myarray\n";
}
I get nothing printed and no errors as well. Pleas let me know if referencing the array is correct?
Thanks in advance
use warnings;to get more errors to be printed