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
> "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
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 wh
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. T
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 0.000
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
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
sets
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. T
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 co
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
mo
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
ment to use the subroutines of
the file named 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 r
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 run
13 matches
Mail list logo