Help needed with AppConfig

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

If I run the code snippet below using the AppConfig
module, I receive the error:

   user: no such variable
   Use of uninitialized value in print at ./ line 22.

I've included the app.cfg configuration file that I'm reading
with AppConfig.  I read the docs, but don't see what I'm
doing wrong.  Any ideas?

#!/usr/bin/perl -w

use strict;

use AppConfig qw(:expand);

my $cfgfile = '/home/fred/app.cfg';
my $config = AppConfig->new($cfgfile);
print $config->user();  


user = fred
home = /home/fred

Site Timeline