Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
March 22, 2007, 6:54 pm
rate this thread
What is the syntax for loading empty (undef) or empty strings into an
AppConfig value set to ARGCOUNT_LIST ?
I am using AppConfig 1.56
Here is a code snippet:
my $config = AppConfig->new();
print join("\n", @) . "\n";
Thing = 'one'
Thing = ''
Thing = 'three'
Thing = <undef>
Thing = undef
The result is only
STDERR : "Thing expects an argument at ./config.txt line 2
I would like AppConfig to add an undef or empty string to the list
rather than ignore it.
-K S D
Re: AppConfig loading undef values into ARGCOUNT_LIST
On 22 Mar 2007 11:54:36 -0700 email@example.com wrote:
k> What is the syntax for loading empty (undef) or empty strings into an
k> AppConfig value set to ARGCOUNT_LIST ?
k> I would like AppConfig to add an undef or empty string to the list
k> rather than ignore it.
I haven't found a way to do this either. I just clear the entry
manually. A better way may be to define a "VAR IS NULL" line, which
would set VAR to undef. But I don't know who's maintaining AppConfig
these days; I asked some questions a year ago and never heard back.