--- In perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com, "Kevin Patterson" <kpatters...>
wrote:
> Is there a way to place all of your variables in a file then load the
> variables into your program from that file???
Could you elaborate on this? What do you mean by placing variables in
a file? Do you mean something like a configuration file or
serialize-restore some data structure or anything else?
Thanks..
I am reading the perl manual on my own and I am new to this..
I have 10 different programs which use the same variable called $envq =
"Development".
Each time I have to change this one variable, I have to make updates to 10
different programs.
I was wondering if I can place this $env into a flat file and the 10
different can load this variable and use it.
This way I don't have to make changes to 10 different programs. I can make a
change in 1 file and the 10
Different programs can use it..
I hope this was a better explanation..
_____
From: perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com [mailto: perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com]
On Behalf Of Alexander Saydakov
Sent: Tuesday, March 25, 2008 2:31 PM
To: perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com Subject: [PBML] Re: Loading variables from a file.
--- In perl-beginner <mailto:perl-beginner%40yahoogroups.com>
yahoogroups.com, "Kevin Patterson" <kpatters...>
wrote:
> Is there a way to place all of your variables in a file then load the
> variables into your program from that file???
Could you elaborate on this? What do you mean by placing variables in
a file? Do you mean something like a configuration file or
serialize-restore some data structure or anything else?