SPUG: Question about variables in packages

Yitzchak Scott-Thoennes sthoenna at efn.org
Fri Oct 24 08:11:25 PDT 2008


On Fri, October 24, 2008 12:32 am, Christopher Howard wrote:
> my $var1 = 10; my $var2 = 3; ...
>
> If they are lexical, will I be able to use them in other scripts?  And
> while we are on the subject, what are my options for using the variables in
> other scripts?

Declare package variables (available globally when qualified with the
package name) with our() instead of my().




More information about the spug-list mailing list