- or download this
#!/usr/bin/perl
...
@my_var = (20..30);
}
1;
- or download this
use my_module;
...
print "@my_var\n"; # prints 20..30
system("perl 2.pl"); # calling another script
exit;
- or download this
use my_module;
print "@my_var\n"; # prints 1..10 but expecting it to be 20..30