Skip Menu |
 

This queue is for tickets about the AppConfig CPAN distribution.

Report information
The Basics
Id: 48176
Status: new
Priority: 0/
Queue: AppConfig

People
Owner: Nobody in particular
Requestors: miguel [...] micovery.com
Cc:
AdminCc:

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



Subject: Variables not being created when using AppConfig::Args
Download (untitled) / with headers
text/plain 663b
The behavior of AppConfig::Args module does not match what the documentation states. If you create a state with { GLOBAL=>{CREATE=>1} }, then variables that are not defined should be created automagically. (If I understand correctly) When using AppConfig::File::parse, the behavior is correct. However, when using AppConfig:Args::parse the behavior is incorrect. I fixed this myself locally by changing AppConfig/Args.pm:96 from if ($state->_exists($variable)) { to if ($state->_exists($variable) || $state->set($variable) ) I am not sure if this is the best way to solve the problem. I just did it that way based on how you did it on File.pm


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.