RE: Reading config files

2002-11-01 Thread vinai AR
Hi, the one way to use the config file is 1. Don't use my to declare variables inside the config file. 2. In the perl program just require the config file and the variables and its values will be a available in the perl program. 3. use "require ;" statement to use the subro

Re: Reading config files

2002-11-01 Thread Victor Tsang
build a pm to store them. Tor. Brian Ling wrote: > > Hi All > > I have a main Perl program that needs to read in a config file that just > sets some variable values, what is the best way to do this. The config > file can be in any format I want such as: > > #!/usr/bin/perl > my $var = 3; > m