in reply to perl global vars in subroutines
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: perl global vars in subroutines
by tilly (Archbishop) on Feb 16, 2004 at 17:17 UTC | |
|
Re: perl global vars in subroutines
by Abigail-II (Bishop) on Feb 16, 2004 at 17:32 UTC |