Skip Menu |

This queue is for tickets about the AppConfig CPAN distribution.

Report information
The Basics
Id: 35640
Status: resolved
Priority: 0/
Queue: AppConfig

People
Owner: NEILB [...] cpan.org
Requestors: steveb [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 1.70



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" ========================================================================
Thanks -- fixed in 1.70. Cheers, Neil