Skip Menu |

This queue is for tickets about the Config-General CPAN distribution.

Report information
The Basics
Id: 1768
Status: resolved
Priority: 0/
Queue: Config-General

People
Owner: Nobody in particular
Requestors: Siva [...] nyc.rr.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.11
Fixed in: (no value)



Subject: re: Bug in Interpolating Variables
When interpolating variables the module is ignoring the values defined with the -DefaultConfig Option. Ex: Sample config file (test.cfg) DATAFILE = /home/foo/bar/data.$DATE my $cfg = Config::General->new(-DefaultConfig => { DATE => 20021101}, -ConfigFile => "test.cfg", -InterPolateVars => 'yes'); The above line croaks with the message: use of uninitialized variable $DATE This feature was working in the earlier versions ( version <= 2.10)
From: TLINDEN
fixed in 2.12. [guest - Wed Nov 6 16:54:45 2002]: Show quoted text
> When interpolating variables the module is ignoring the values defined > with the -DefaultConfig Option. > > Ex: Sample config file (test.cfg) > > DATAFILE = /home/foo/bar/data.$DATE > > my $cfg = Config::General->new(-DefaultConfig => { DATE => > 20021101}, -ConfigFile => "test.cfg", -InterPolateVars => 'yes'); > > The above line croaks with the message: > use of uninitialized variable $DATE > > This feature was working in the earlier versions ( version <= 2.10)