Subject: | Documentation error in READING CONFIGURATION FILES section. |
In the READING CONFIGURATION FILES section of the documentation on this
site http://search.cpan.org/dist/AppConfig/lib/AppConfig.pm
In this section of the documentation:
The variable is defined as "drink" and then accessed as "drinks"
I'm pretty sure it should be accessed as the same name.
========================================================================
Variables may be defined to accept multiple values (ARGCOUNT =
ARGCOUNT_LIST). Each subsequent definition of the variable adds the
value to the list of previously set values for the variable.
drink = coffee
drink = tea
A reference to a list of values is returned when the variable is requested.
my $beverages = $config->drinks();
print join(", ", @$beverages); # prints "coffee, tea"
========================================================================
I think it should read.
========================================================================
Variables may be defined to accept multiple values (ARGCOUNT =
ARGCOUNT_LIST). Each subsequent definition of the variable adds the
value to the list of previously set values for the variable.
drink = coffee
drink = tea
A reference to a list of values is returned when the variable is requested.
my $beverages = $config->drink();
print join(", ", @$beverages); # prints "coffee, tea"
========================================================================