Re: shared library of variables?



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
.