If they aren't in the same file then our is the way to gomy $i = 10; &print_i; sub print_i{ print "$i\n"; }
File2:our $i = 10; ....
our $i; ... sub print_i{ print "$i\n"; }
- Tom
In reply to Re: Globals with Strict
by tcf22
in thread Globals with Strict
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |