Re: config files

2005-12-03 Thread Randal L. Schwartz
M == M Lewis [EMAIL PROTECTED] writes: M do '/absolute/path/to/mcr.conf'; M Which defeats my purpose of getting the configuration items out of the M scripts themselves. I don't want the users to have to edit the three M scripts, only the mcr.conf file. If your configs are relative to the file

Re: config files

2005-12-03 Thread M. Lewis
Randal L. Schwartz wrote: M == M Lewis [EMAIL PROTECTED] writes: M do '/absolute/path/to/mcr.conf'; M Which defeats my purpose of getting the configuration items out of the M scripts themselves. I don't want the users to have to edit the three M scripts, only the mcr.conf file. If your

Re: config files

2005-12-02 Thread Shawn Corey
M. Lewis wrote: I'm trying to move the configuration variables out of three perl scripts and put them in a config file. Fine, no problem so far. The way this works is an email message with a given subject is processed by procmail then passed off to the first perl script. The first script

Re: config files

2005-12-02 Thread Dr.Ruud
Shawn Corey: M. Lewis: do './mcr.conf'; The only way I have found thus far to make this work [...] is to change the above line to: do '/absolute/path/to/mcr.conf'; Your problem could be one of two things. 1. The procmail is run by the user but not from the directory where mcr.conf

Re: config files

2005-12-02 Thread Shawn Corey
Dr.Ruud wrote: If the .conf is in the same directory as the .pl, then $0 can help, see `perldoc perlvar` and File::Basename, or maybe even `perldoc FindBin`. True. But since the OP said 'mail' I assumed that meant more than one user, each with a different configuration. -- Just my

Re: config files

2005-12-02 Thread M. Lewis
Shawn Corey wrote: M. Lewis wrote: I'm trying to move the configuration variables out of three perl scripts and put them in a config file. Fine, no problem so far. The way this works is an email message with a given subject is processed by procmail then passed off to the first perl script.

Re: config files

2005-12-02 Thread M. Lewis
Dr.Ruud wrote: Shawn Corey: M. Lewis: do './mcr.conf'; The only way I have found thus far to make this work [...] is to change the above line to: do '/absolute/path/to/mcr.conf'; Your problem could be one of two things. 1. The procmail is run by the user but not from the directory

config files

2005-12-01 Thread M. Lewis
I'm trying to move the configuration variables out of three perl scripts and put them in a config file. Fine, no problem so far. The way this works is an email message with a given subject is processed by procmail then passed off to the first perl script. The first script sets up the second.

Re: Using Config files and variables.

2005-08-01 Thread Dave Gray
On 7/31/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: problem is that the variables in the config are not being translated into there actual values before they get used. So you have a plaintext config file with variable names in it that you want perl to interpolate at some point once the

Using Config files and variables.

2005-07-31 Thread christopher . l . hood
Ok , all file contents and code are below, this is a sort of complicated issue. I have a config file with customer static information , a couple of modules, and a script. The basis of the problem is that in the config file there is an sql query that has some variables in it. The script calls one

Reading config files

2002-11-01 Thread Brian Ling
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; my $var1 = 4 ; my $var2 = 234; etc So how could I

RE: Reading config files

2002-11-01 Thread vinai AR
the subroutines of the file named filename in some other program. Rgds, vinai -Original Message- From: Brian Ling [mailto:brian.ling;bbc.co.uk] Sent: Friday, November 01, 2002 3:11 PM To: [EMAIL PROTECTED] Subject: Reading config files Hi All I have a main Perl program that needs to read

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; my $var1 =