now in your perl_mod.pm you need to include:our global_1; our global_2; require(perl_mod.pm);
This will allow you to use global variables across perl files. Make sure you use Strict as well.our global_1; our global_2;
In reply to Re: perl global vars in subroutines
by bear0053
in thread perl global vars in subroutines
by vinforget
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |