Subject: | AppConfig 1.55 produces error when running perl -w |
When a program that uses AppConfig is run with the -w module, the following output is produced:
Argument "ARGCOUNT_LIST" isn't numeric in numeric eq (==) at /usr/local/lib/perl5/site_perl/5.8.0/AppConfig/State.pm line 615, <FH> line 9.
Argument "ARGCOUNT_LIST" isn't numeric in numeric eq (==) at /usr/local/lib/perl5/site_perl/5.8.0/AppConfig/State.pm line 615, <FH> line 10.
Argument "ARGCOUNT_LIST" isn't numeric in numeric eq (==) at /usr/local/lib/perl5/site_perl/5.8.0/AppConfig/State.pm line 615, <FH> line 11.
Argument "ARGCOUNT_LIST" isn't numeric in numeric eq (==) at /usr/local/lib/perl5/site_perl/5.8.0/AppConfig/State.pm line 615, <FH> line 13.
Argument "ARGCOUNT_LIST" isn't numeric in numeric eq (==) at /usr/local/lib/perl5/site_perl/5.8.0/AppConfig/State.pm line 615, <FH> line 14.
Argument "ARGCOUNT_LIST" isn't numeric in numeric eq (==) at /usr/local/lib/perl5/site_perl/5.8.0/AppConfig/State.pm line 615, <FH> line 15.
Argument "ARGCOUNT_LIST" isn't numeric in numeric eq (==) at /usr/local/lib/perl5/site_perl/5.8.0/AppConfig/State.pm line 615, <FH> line 16.
Argument "ARGCOUNT_LIST" isn't numeric in numeric eq (==) at /usr/local/lib/perl5/site_perl/5.8.0/AppConfig/State.pm line 615, <FH> line 19.
This seems to happen irregardless of how AppConfig->new is called. I am presently calling AppConfig like so:
if (-e $file) {
$cfg = AppConfig->new( { CREATE => 1,
GLOBAL => {
DEFAULT => <undef>,
ARGCOUNT => 1
}
}
);
$cfg->file($file);
return $cfg
} # if (-e $file)
Other relevant information:
OS : Solaris 8 x86
Perl : 5.8.0
Pleaes let me know if you require any additional information