package G; use strict; use Config::General; use vars qw( %CF ); %G::CF = ParseConfig("./config.dat");
elsewhere, when I want to make use of the info in the hash
use strict; my $foo = $G::CF{foo}
Note the use of Config::General a great config file reader/writer.
-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday
In reply to Re: Persistant variable/data/object?
by freddo411
in thread Persistant variable/data/object?
by asiufy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |