Re: shared library of variables?
- From: security.department@xxxxxxxx (John Doe)
- Date: Sun, 4 Sep 2005 16:12:53 +0200
Bowen, Bruce am Sonntag, 4. September 2005 15.31:
> I have a program that is monitoring communications into a PC, and based on
> the message format will trigger one of multiple perl files. Most of these
> files use the same variable name and my question today is, is there a way
> of establishing a common library file containing all of the variables so
> that when one of perl files gets called it can have access to the variables
> thru this external file.
yes,
1. read perldoc perlmod
2. create a module that defines the variables
3. use them from your scripts (assumed you mean that by the term "perl files")
> This would allow me to maintain one file instead
> of having to edit all of the files of add the new variable.
joe
.
- References:
- shared library of variables?
- From: Bruce Bowen
- shared library of variables?
- Prev by Date: shared library of variables?
- Next by Date: Re: DBD::Oracle installation script assumes oracle is installed local ly?
- Previous by thread: shared library of variables?
- Next by thread: Fwd: RE: shared library of variables?
- Index(es):