crackotter has asked for the wisdom of the Perl Monks concerning the following question:
With the following config file, config.conf:#!/usr/bin/perl use strict; use AppConfig qw(:expand :argcount); #Create $config object my $config = AppConfig->new({ GLOBAL => { ARGCOUNT => ARGCOUNT_ONE, DEFAULT => "", }, CREATE => 1, }); #open config file unless ($config->file("config.conf")) { die "Could not open or find configuration file.\n"; } my $user_name = $config->get("global_username"); my $password = $config->get("global_password");
If if do it this way currently, AppConfig throws an error:[GLOBAL] #Set you username username = default #Do not uncomment unless you need to #password = default
edited: Thu Jun 12 12:09:00 2003 by jeffa - title change (was: AppConfig)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help fixing AppConfig error ("global_password: no such variable")
by kabel (Chaplain) on Jun 11, 2003 at 19:14 UTC | |
|
Re: Need help fixing AppConfig error ("global_password: no such variable")
by jdavidboyd (Friar) on Jun 11, 2003 at 19:15 UTC | |
|
Re: Need help fixing AppConfig error ("global_password: no such variable")
by crackotter (Beadle) on Jun 11, 2003 at 21:10 UTC |