Re: Using Config files and variables.
- From: yargevad@xxxxxxxxx (Dave Gray)
- Date: Mon, 1 Aug 2005 12:27:24 -0400
On 7/31/05, christopher.l.hood@xxxxxxxxxxx
<christopher.l.hood@xxxxxxxxxxx> 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 config data is loaded.
> my $sth = $dbh->prepare(qq{$QUERY});
> #print "DEBUG: $QUERY\n";
What does this debug print give you?
> query= <<END
> SELECT N.IP_ADDRESS,
[snip]
> AND CAA.ADDRESS_ID = AD.ADDRESS_ID
> AND P.NODE_ADDRESS = $dslam
> AND N.IP_ADDRESS = $ip_address
> END
.
- References:
- Using Config files and variables.
- From: Christopher L Hood
- Using Config files and variables.
- Prev by Date: print to a specific location in a file
- Next by Date: Re: 'Use Lib' problem...
- Previous by thread: Using Config files and variables.
- Next by thread: how do i...
- Index(es):
Relevant Pages
|