List Info

Thread: Re: Loading variables from a file.




Re: Loading variables from a file.
country flaguser name
United States
2008-03-25 16:30:39

--- In perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com, "Kevin Patterson&quot; <kpatters...>
wrote:
&gt; 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?

/sandy
http://myperlquiz.com/

__._,_.___
.

__,_._,___
RE: Re: Loading variables from a file.
country flaguser name
United States
2008-03-25 16:42:50

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&quot; <kpatters...>
wrote:
&gt; 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?

/sandy
http://myperlquiz. <http://myperlquiz.com/> com/

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )